- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2022 01:38 PM
I need to write a script for a custom created field's visibility (custom field name "Justification"). It needs to be displayed and become mandatory must only if "Score" field is manually updated. The condition builder does not have options for "Score" manual update.
Can someone help me write this script? I am new to scripting. Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2022 01:32 PM
So:
Since the only other means that updates the Demand most likely take place on the server-side(business rules, flow, workflows - potentially UI actions etc) you should not be concerned about how you can identify if this was updated manually.
However, I would write an onChange Client Script for the field "score" which states the following:
if (newValue == '')
return;
else {
g_form.setVisible('justification',true);
g_form.setMandatory('justification',true);
}
Please give it a try and provide feedback.
Tudor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2022 09:44 AM
//Type appropriate comment here, and begin script below
if (newValue == "")
return;
g_form.setVisible('u_justification_for_adjusting_score', true);
g_form.setMandatory('u_justification_for_adjusting_score', true);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2022 10:47 AM
Anyone??