change table

nameisnani
Mega Sage

Hi Team , 

 

On change table I have created new field called ' Back Out Options' .

 

nameisnani_0-1717639783746.png

 

to show info message i have created onchange cilent script 

nameisnani_1-1717639869442.png

 

After saving the form Info message is removed . It has to be there .what steps i have take please help me here .

 

nameisnani_2-1717640032280.png

 

Thanks in advance 

1 ACCEPTED SOLUTION

Community Alums
Not applicable

@nameisnani 

 

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');
    }

}

View solution in original post

5 REPLIES 5

nameisnani
Mega Sage

@Community Alums 

 

could you please explain your script how that will works.