How to populate Additional comments based on RITM variable value

AnilM99
Tera Expert

Hi Team,

I need to populate additional comments to "This request is pending for device status availability." when the RITM variable "Device Status" changes to 'Check Availability'.

I am trying Onchange client script, but no luck.

 

Help with the script

 

Thanks

Anil!

6 REPLIES 6

Kishor O
Tera Sage

 

var device_status=newValue;

if(device_status=='check availivily')// keep backend value of the variable

{

g_form.setValue('additional_comment","This request is pending for device status availability");

} 

*use onchage client script and field should be device staus(onchange of device status).

 

Danish Bhairag2
Tera Sage
Tera Sage

Hi @AnilM99 ,

 

Please try a BR on that table with after Update & under condition give state changes to "Check Availability"

then in script section write below code.

 

 

current.comments = "Your message";
current.update();

 

 

 

Thanks,

Danish

 

JaeggerLegane
Kilo Sage

Have you considered doing this in Flow Designer instead?

In Flow Designer, add an if condition on status change, and then an update record action where you populate the additional comments.

--------------------------------------------------------------------------------
If my post helped you, please click the accept solution button and hit the thumbs up! Thank you!

Harish KM
Kilo Patron
Kilo Patron

hello @AnilM99 you can do this in flow designer or workflow if your using one, else you can create BR before update

BR Cond: Item is "your catalog"

script:

if(current.variables.variablename == "your value")

{

current.comments = "This request is pending for device status availability";

}

Regards
Harish