UI Action To Save To Work Notes

JDX7913
Tera Guru

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).

find_real_file.png

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. 

find_real_file.png

What is the line of code to tell it to submit the comments?

1 ACCEPTED SOLUTION

SanjivMeher
Kilo Patron
Kilo Patron

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.

View solution in original post

3 REPLIES 3

SanjivMeher
Kilo Patron
Kilo Patron

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.

That worked, thank you.

-O-
Kilo Patron

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.