How to populate Additional comments based on RITM variable value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 12:47 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 12:52 AM - edited 01-17-2024 12:54 AM
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 12:53 AM - edited 01-17-2024 12:54 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 12:55 AM
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 12:58 AM
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";
}
Harish