- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2024 09:52 PM
Hi Team ,
can anyone please provide me the script for field msg
when ever - Yes , data owner ....... is selected , field msg should display ' Please attach evidence or provide details in the description for the existing standing approval '
option backend value
please provide me scirpt with output.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2024 10:52 PM - edited 10-29-2024 10:57 PM
@nameisnani You didn't replace with variable name but with select text. Should be as below.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if (newValue === 'yes2') {
g_form.showFieldMsg('does_the_request_owner_approval_not_required_as_standing_approval_in_place', 'Please attach evidence or provide details in the description for the existing standing approval', 'error');
} else {
g_form.hideFieldMsg('does_the_request_owner_approval_not_required_as_standing_approval_in_place', true);
}
}
Make an onChange client script on variable "does_the_request_owner_approval_not_required_as_standing_approval_in_place"
."
Execution result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2024 10:55 PM
Hey @nameisnani
You're putting the Label (Text) of the question choice. (Yes - Data owner... in place).
The <your_variable_name> means the variable name of "Does the request include sensitive Data Elements?".
So let open the variable, and you will figure it out the variable name like below.
You can also try the UI Policy suggestion below from Ashish without any lines of code.
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2024 10:21 PM
Hello @nameisnani ,
Instead of using a script, you can achieve this with a UI Policy.
Please mark this as "correct" and "helpful" if you feel this answer helped you in anyway.
Thanks and Regards,
Ashish