Alert message below a field

MStritt
Tera Guru

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:

find_real_file.png

Case form:

find_real_file.png

1 ACCEPTED SOLUTION

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.

find_real_file.png

 

find_real_file.png

Please mark correct and helpful, If it's worth for you.

Thanks,

Vinay

View solution in original post

13 REPLIES 13

Vinay Mishra3
Mega Guru

Hi,

You cay use below method in client script in order to show the field message.

Note: Replace 'impact' with your field name and message with your message.

g_form.showFieldMsg('impact','Low impact response time can be one week','info');

Please mark correct/helpful, If it's applicable for you.

Thanks,

Vinay

Hi Vinay,

I've created the following BR on the Case table, but it's not working. I'm sure I haven't configured the script correctly. I just used the message you had. Right now, as soon as I get it to work, I can change the text information.

find_real_file.png

 

find_real_file.png

 

Hi MS,

Instead of business rule write OnLoad client script, get the field value by using g_form.getValue('field_name') then use if condition and then use method.

 

Please mark correct/helpful, If it's applicable for you.

Thanks,

Vinay