- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2020 05:55 PM
Hi,
This is a simple question.
I'm a record producer and want to always have a message at the bottom of the field.
How is it best practice to implement it?
Thank you in advance,
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2020 08:22 PM
Comment out the generated isLoading || newValue if condition block.
function onChange(control, oldValue, newValue, isLoading) {
//if (isLoading || newValue == '') {
// return;
//}
g_form.showFieldMsg('field_1', 'This is a showFieldMsg message', 'info');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2020 10:09 PM
Hi,
Thank you so much.
I worked it!
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2020 08:25 PM
Hi,
You can create help text which will always be shown on portal for that variable; but it would be shown on top
I just checked using onLoad client script and it seems to clear the message if you change the value
So please use onChange client script
function onChange(control, oldValue, newValue, isLoading) {
g_form.showFieldMsg('variable', 'This is my message', 'info', true);
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2020 10:10 PM
Hi,
Thank you.
I worked it!
Regards,