I have a process where a form can be passed back and forth several times between participants before finally being approved, and one of the user tasks uses all three action buttons, as they might choose to either return it to the Farm Manager for changes, return it to AP for changes, or approve the form. I implemented the script to capture comments made during the process and display them on the form (from this post: https://answers.laserfiche.com/questions/68502/Need-java-inernal-variables-to-get-text-from-the-comments-forms) and it works as needed with one exception. I noticed that whenever there is a form in the process that has the submit button being used for an action, the comments made when that button is selected are not included in the comment capture. I understand that normally when the submit button is used it is on initial form submission and no comments are available; however, when that button is being used to determine an action later in the process, I need to capture the comments made.
Is there a workaround for this that anyone is aware of in javascript? My other option is to use only the Approve and Reject buttons, and label the Reject button "Return for Changes" and then have another form automatically load for that same participant that uses the Approve and Reject buttons labeled with the two choices of the people they may send it to for changes, but that is certainly not preferable.
Thanks for any help.