Tokyo - g_form.showFieldMsg not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2022 07:11 AM
Tokyo: I am testing in dev and my instance is on Tokyo.
I have an onLoad catalog script to show 2 field messages.
This is not working both in the UI and Portal
function onLoad() {
//Type appropriate comment here, and begin script below
g_form.showFieldMsg('users', "Add any other users that will use this data.", "error",true);
g_form.showFieldMsg('geo_department', "Add any other departments that will use this data.", "error",true);
}
- Labels:
-
Multiple Versions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2022 11:25 AM
Thanks, haha.
I would hope it wasn't just working for me as a one off.
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2022 10:51 AM
strange wonder why mine is not working
Thank you all for confirming

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2022 11:28 AM
Did you try clearing value of the field?
***Mark Correct or Helpful if it helps.***
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2022 11:05 AM
Hi,
you can try this
g_form.setValue('users','');
g_form.setValue('geo_department','');
g_form.showFieldMsg('users', "Add any other users that will use this data.", "error",true);
g_form.showFieldMsg('geo_department', "Add any other departments that will use this data.", "error",true);
Regards,
RJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2023 11:44 PM
Hi there!
I also have a problem with functions getMessage on Portal, I don't know if is the same as yours. The first time that the message must be displayed, the message is displayed but is not trasnlated. The following times the message is displayed correctly. If you have the same problem, you can check on the console message (in the developer tools) and check this message:
(key="your message"): synchronous use not supported in Mobile or Service Portal unless message is already cached.
This error is fixed on Utah.
Regards