- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2024 07:14 PM
Hi Team ,
On change table I have created new field called ' Back Out Options' .
to show info message i have created onchange cilent script
After saving the form Info message is removed . It has to be there .what steps i have take please help me here .
Thanks in advance
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2024 09:34 PM
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (newValue === '') {
return;
}
if (isLoading) {
if (newValue == 'tested backout') {
g_form.showFieldMsg('u_backout_options', 'This specific change has been implement in NonProd or Prod and backed out successfully', 'info');
} else if (newValue == 'untested backout') {
g_form.showFieldMsg('u_backout_options', 'Back Out procedure is documented and available but has not been tested', 'info');
} else if (newValue == 'no back out') {
g_form.showFieldMsg('u_backout_options', 'This change cannot be backed out', 'info');
}
return;
}
if (newValue == 'tested backout') {
g_form.showFieldMsg('u_backout_options', 'This specific change has been implement in NonProd or Prod and backed out successfully', 'info');
} else if (newValue == 'untested backout') {
g_form.showFieldMsg('u_backout_options', 'Back Out procedure is documented and available but has not been tested', 'info');
} else if (newValue == 'no back out') {
g_form.showFieldMsg('u_backout_options', 'This change cannot be backed out', 'info');
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2024 07:59 PM - edited 06-05-2024 08:18 PM
Hi @nameisnani ,
Separate isloading & newValue in line 2 & Try adding the code (line 6 to 13) in isloading.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (newValue === '') {
return;
}
if (isLoading) {
Your code from line 6 to 13
return;
}
```Your code from line 6 to 13
}
If my answer helped you in any way, please mark it as helpful or correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2024 09:21 PM
@Community Alums
I got confused , could you please provide me the complete script .
Below is my current script.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if (newValue == 'tested backout') {
g_form.showFieldMsg('u_backout_options', 'This specific change has been implement in NonProd or Prod and backed out successfully', 'info');
} else if (newValue == 'untested backout') {
g_form.showFieldMsg('u_backout_options', 'Back Out procedure is documented and available but has not been tested', 'info');
} else if (newValue == 'no back out') {
g_form.showFieldMsg('u_backout_options', 'This change cannot be backed out', 'info');
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2024 09:34 PM
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (newValue === '') {
return;
}
if (isLoading) {
if (newValue == 'tested backout') {
g_form.showFieldMsg('u_backout_options', 'This specific change has been implement in NonProd or Prod and backed out successfully', 'info');
} else if (newValue == 'untested backout') {
g_form.showFieldMsg('u_backout_options', 'Back Out procedure is documented and available but has not been tested', 'info');
} else if (newValue == 'no back out') {
g_form.showFieldMsg('u_backout_options', 'This change cannot be backed out', 'info');
}
return;
}
if (newValue == 'tested backout') {
g_form.showFieldMsg('u_backout_options', 'This specific change has been implement in NonProd or Prod and backed out successfully', 'info');
} else if (newValue == 'untested backout') {
g_form.showFieldMsg('u_backout_options', 'Back Out procedure is documented and available but has not been tested', 'info');
} else if (newValue == 'no back out') {
g_form.showFieldMsg('u_backout_options', 'This change cannot be backed out', 'info');
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2024 09:32 PM