showFieldMsg is not working in workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-23-2024 11:55 PM
Hi,
I'm trying to show field msg in workspace using g_form.shoFieldMsg() after clearing the value, the value is getting cleared but the message stays for a fraction of second and disappears. Please suggest how to fix this issue.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-24-2024 12:13 AM
Hi @Sri_9 Can you share your script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-24-2024 12:30 AM
Hi Sid,
I wrote an on change client script and the script is something like this:
var test = g_form.getValue(āu_testā)
var regex = /^[^, ]+$/;
if (test != '' && !regex.test(test)) {
g_form.clearValue('u_test');
g_form.showFieldMsg('u_test', 'Please enter a valid valueā, āerror');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-24-2024 12:47 AM
Why you are trying to clear field value before the show field msg? Please try to clear value after show field message if i have correctly understand your requirement.
Thank you!!
Dnyaneshwaree Satpute
Tera Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-24-2024 02:14 AM
Hi @Dnyaneshwaree ,
If I write the message before clearing the value the message isn't showing up at all.