- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2022 02:11 AM
Suppose if I have field a 'Priority' having choices P0,P1,P2,P3 and and field 'Status' having choices 'Serviced','Not Serviced'. Whenever 'Priority' is not P0 or P1 then 'Status' default value should be 'Not Serviced'.
I want to achieve this using default value in Configure dictionary.
Kindly Help!
Solved! Go to Solution.
- Labels:
-
User Experience and Design
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2022 02:25 AM
Hi,
are you sure the Priority will be having some default value when form loads?
I believe you should be using onChange client script and achieve this if user changes the priority
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2022 02:16 AM
Hi Rahul,
Use the below code in your Status default value
if(current.priority==0||current.priority==1||current.priority==2){'not_serviced'}
Regards,
Deepankar Mathur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2022 02:25 AM
Hi,
are you sure the Priority will be having some default value when form loads?
I believe you should be using onChange client script and achieve this if user changes the priority
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2022 02:31 AM
Priority is None on form load
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2022 02:47 AM
Hi,
then in that case you can use onChange client script on Priority as I mentioned and then set the value
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader