- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2020 08:29 PM
I am looking to add an alert message below a field on our Case form, when a particular value is entered on our Account form. When the Enable Case Auto Close box is FALSE on the Account (Account.Enable Case Auto Close/u_enable_case_auto_close), I would like to add a message below the Enable Auto Close checkbox on the Case (Enable Case Auto Close/u_enable_auto_close) form (similar to below, but with different text).
Account form:
Case form:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2020 09:57 PM
Hi MS,
Either you have to use GlideAjax to check the field value in Account table or you can use UI policy.
Put same condition which you have in Business rule and then in the script section use that method to show the message.
Please mark correct and helpful, If it's worth for you.
Thanks,
Vinay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2020 09:25 PM
Hi Himanshu,
Thanks for the reply. The value I'm looking for, is on the Account form (Enable Case Auto Close). If that is FALSE, then I need to add a message below the Enable Auto Close field on the Case form. How do you configure that in the script? In the script you have, the 'if' condition is for the enable auto close field on the Case. I think the 'if' field needs to be the Enable Case Auto Close on the Account, and the 'alert' needs to show below the Enable Auto Close field on the Case. I'm not experienced with scripting, so this is fairly new to me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2020 09:27 PM
And should this client script be on the Case table or the Account table?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2020 09:46 PM
on which table you want the alert you have to write Client script on that table

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2020 10:03 PM
Hi
You can write an onChange client script on that checkbox, and check something like
if(newValue =='false')
{
g_form.showFieldMsg('field_name','Your help text','info');
alert("message");
//show you field messages or alert
}
Hope this helps.
Regards
Omkar Mone