Defaulting Values on Change Model
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2025 06:23 AM
I am attempting to default the category and subcategory on specific change models. The issue I run into is that they are set to read only when I do. I simply need to default them and not set for the duration.
What I have tried:
1. The record preset method. The values are ready only on create and submit.
2. I have also tried the UI policy. The UI policy adds another issue in that we have a script include that triggers off the category. Once I set the category, the subcategory is empty. The category is set to read only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2025 06:29 AM
Hi @awilkerson ,
you can create an onLoad client script
or you can update the dictionary default value (with some script)
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2025 07:03 AM
Hi @awilkerson
Did you try setting it as the default at the model level itself, like shown below?
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2025 07:24 AM
I did. That worked except for the fact that those values are now read-only. I need the ability to change them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2025 07:28 AM
Hi @awilkerson
Now it's becoming contradictory. On one hand, you're saying you want to prefill values from the model to reduce manual effort, but then you're also saying you want to change those values later — which means you're not happy with what the model is providing.
If that's the case, then you shouldn't set that value in the model at all and instead ask the user to input it manually. The purpose of using a model is to reduce the time and effort required to fill out a change record — and it seems like you're trying to override that, which could lead to breaking the intent of the model.
My suggestion: think it through. Either use the value in the model or keep the field open for manual entry — but mixing both approaches will only create technical debt.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************