Variables options

nikhitha24
Tera Guru

Hi All,

Can someone please help me on the below query.

nikhitha24_0-1700982803157.png

In the above screenshot if i select Snapshot of VM Servers the table will be visible. before submitting the form if i want to change the options, i am able to see the old option table data after reloading the form i can see the other option table values. Without reloading the form how can we achieve this.

3 REPLIES 3

Danish Bhairag2
Tera Sage
Tera Sage

Hi @nikhitha24 ,

 

The question is not very clear based upon the screenshot added. Could u please explain a bit properly.

 

Thanks,

Danish

 

Hi @Danish Bhairag2 

Based on the option selection in "what action do you require?" we have created two different tables upon selection.

For example if i select Extension of snapshot retention it need to visible the RITM details.

if i change the option value to Snapshot of VMServers it need to visible change table but after loading the form only it is showing the option selected table.

nikhitha24
Tera Guru

Hi @all,

 

I have written the below script but it is not working, for the tables i have used the variable set.

 

function onChange(control, oldValue, newValue, isLoading) {
if (isLoading) {
return;
}

if (newValue == 'Extension of snapshot retention') {
g_form.setDisplay('affected_ci', false);
g_form.setDisplay('snapshot_change', true);
} else if (newValue == 'Snapshot of VM Servers') {
g_form.setDisplay('snapshot_change', false);
g_form.setDisplay('affected_ci', true);
}
}
 
Please help me on this.