ShowFieldMsg('end_time', err_message, 'error', true);

gowtham_kp
Tera Contributor

I am facing an issue in adding the variable in the ShowFieldMsg

 

 

 

var err_message = " please input 10 digit integer";
 g_form.showFieldMsg('phone_number', err_message, 'error', true);

 

 

 

1 ACCEPTED SOLUTION

James Chun
Kilo Patron

Hi @gowtham_kp,

 

Your script looks fine, I am guessing its condition is not being met.

Is this an onLoad/onChange client script? When are you expecting the message to appear?

 

Cheers

View solution in original post

4 REPLIES 4

briannice
Kilo Sage

Hi,

 

According to the documentation of the showFieldMsg function, your script is correct. It also seems that way to me.

 

Could you give some additional information about where you are using the script, the configuration of the client script, and the form it is being used on?

In the record prodcuer, I am using it in the catalog client script

James Chun
Kilo Patron

Hi @gowtham_kp,

 

Your script looks fine, I am guessing its condition is not being met.

Is this an onLoad/onChange client script? When are you expecting the message to appear?

 

Cheers

There was some coding error in my catalog client  script, which got fixed.
Thank You