- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2023 07:58 AM
Hi,
I am trying to do a simple UI Action, visible in Lists, running on the Client Side, that displays a simple message.
I tried it on the Task table, and any extended table, like Incident, and it worked perfectly. (See image below)
When I put the UI Action on a custom table I created, I get the message "Uncaught ReferenceError: addFormMessage is not defined".
I also tried using g_form functions, and still get an error saying g_form is not defined.
Is there an attribute on a configuration we need to put on our custom tables to have access to these functions ?
Thanks !
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2023 11:02 AM
Seems like something is missing on your custom table/app. Absent finding that, try defining g_form before using it:
var g_form=new GlideForm();
g_form.addInfoMessage('Test');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2023 11:47 AM
Hello Brad,
It worked ! Many thanks !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2023 01:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2023 12:01 PM
onClick - submitForm()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2023 12:05 PM
You just need the codes with onClick option: