- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 11:34 AM
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);
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 12:31 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 11:45 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 11:48 AM
In the record prodcuer, I am using it in the catalog client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 12:31 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 12:35 PM
There was some coding error in my catalog client script, which got fixed.
Thank You