- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2020 12:27 PM
I have a UI Action button that when clicked it will ask the user to enter in a comment before closing the record (inactive it).
I followed this guide here to render the comment box on the platform view and it works. However, when I click on "ok" all it does is populate the value in the work notes, it doesn't actually submit it so it is not showing up in the activities field.
What is the line of code to tell it to submit the comments?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2020 12:35 PM
In the client script of UI page, can you also add
g_form.save();
after the line
g_form.setValue("comments", comments); and try
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2020 12:35 PM
In the client script of UI page, can you also add
g_form.save();
after the line
g_form.setValue("comments", comments); and try
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2020 02:33 PM
That worked, thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2020 01:10 PM
If the UI action has server side code to execute, like setting values and only after that saving the record, you should use:
gsftSubmit(null, g_form.getFormElement(), '<action name>');
<action name> would be the text contained in field Action name of the UI Action.