Populate info message after updating the variable

Geetha Lukka
Tera Contributor

How can we populate an info message on the RITM, after updating an particular variable from the RITM form in variables section.

5 REPLIES 5

SatyakiBose
Mega Sage

Hello @Geetha Lukka 

You can write an onchange client script as below on the field you wish to show the message.

satyakibose_0-1676304856069.png

Now when the value is set on the field, the info message shows up as:

satyakibose_1-1676304895625.png

If you want, to change it to a field message, then the syntax will be something like:  g_form.showFieldMsg('FIELD_NAME','YOUR MESSAGE','info');

Thanks for the reply, I want to add message  after updating the value not after changing it.

Hi @Geetha Lukka 

Then you can change the type to onsubmit client script, instead of onchange.

Also make sure to set the below client script options to true.

satyakibose_0-1676305316666.png

 

SatyakiBose
Mega Sage

You can use either line 6 or 7 in the script below.

Line 6 would show the message on the top of the page.

Line 7 would show the message below the field.

satyakibose_2-1676305105535.png