How to display error message in the service portal using business rule.

Sai25
Giga Guru

Hi All,

I want to display error when he is entering the value more than 10 in the field. Through client script it is working fine but using business rule i want to show error message in the portal.

IP Range is the field where i am actually trying for this.

Could you please help me on this,

find_real_file.png

find_real_file.png

Thank You,

Sai.

1 ACCEPTED SOLUTION

Harsh Vardhan
Giga Patron

sample code catalog client script:

 

var ab = g_form.getValue('ip_range'); // make sure the variable name

if(ab > 10 ){
g_form.addErrorMessage('This is an error');

}

View solution in original post

17 REPLIES 17

use showFieldMsg(), 

g_form.showFieldMsg('ip_range', 'Please Select a quantity below 99999', "error");

Hi Harsha,

I used script it is working only in catalog form, but not on the portal.

 

Thank You,

Sai.

 

can you paste the updated script. 

Hi Harsha,

Below is the screenshot of the catalog form error message.

In portal after giving the value greater than 16 its clearing the value. message is not getting.

please paste the script which you have used .