- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2024 12:53 AM
hi i want to make field mandatory when my comlexity field changes. how can i do it. i have created ui policy for it but it is coming for all value i only have to do when complexity changes.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2024 01:38 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2024 02:29 AM
@Deepanshi1 Here are the steps to create a client script to make a field mandatory.
1. Search for Client script module in Application Filter. >> Click New
2. Configure the client script as follows.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2024 04:28 AM
@Deepanshi1
do it in client script search in application navigator and use onchange on the field
Please accept the solution /mark this response as correct or helpful if it assisted you with your question.
Regards,
Animesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2024 01:00 AM - edited ‎05-02-2024 01:16 AM
hey @Deepanshi1
So if you go by UI policy conditions would be complexity field changes then create a record in UI policy actions and make a field mandatory , if you don't have the "changes" option available then use code below
if(NewValue!=oldValue)
{
g_form.setMandatory('fieldname',true)
}
let me know if this works...if yes mark this as close, if not share the problem
Please accept the solution /mark this response as correct or helpful if it assisted you with your question.
Regards,
Animesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2024 01:20 AM
@Deepanshi1 is the above code which i have posted is working?
Please accept the solution /mark this response as correct or helpful if it assisted you with your question.
Regards,
Animesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2024 01:38 AM
where do i write this record?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2024 04:28 AM
@Deepanshi1
do it in client script search in application navigator and use onchange on the field
Please accept the solution /mark this response as correct or helpful if it assisted you with your question.
Regards,
Animesh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2024 01:02 AM
Hi,
As per shared configuration field will be mandated when Complexity is either Simple, Complex or Critical.
I assume you feel it mandatory as Complexity field has no default value as one of Simple, Complex or Critical and not as None and thus the case.