- 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:06 PM
Hi @nameisnani
Give my OnChange client script a try to show and hide field message for your case.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if (newValue === 'yes2') {
g_form.showFieldMsg('<your_variable_name>', 'Please attach evidence or provide details in the description for the existing standing approval', 'error'); //replace your variable name
return;
}
g_form.hideFieldMsg('<your_variable_name>', true); //replace your variable name
}
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2024 10:47 PM

- 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-31-2024 03:09 PM - edited 10-31-2024 03:09 PM
@nameisnani Please accept @Timi 's reply too because he did provide the answer first. I only filled in the variable name. It's now possible to select several answers and I think he deserves the credit too.