You are viewing limited content. For full access, please sign in.

Question

Question

Capturing comments script not working when button used is "submit"

asked on April 11, 2016 Show version history

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.

0 0

Answer

SELECTED ANSWER
replied on April 11, 2016 Show version history

I actually figured out what was happening with this issue.  The issue is not the "Submit" button being chosen as the action, but rather that the subsequent form was set to Read Only for Task Participant in every single situation in the process where the "Submit" button was being chosen!  Changing the particular forms used in these tasks to have all the sections set as read only, and then creating separate sections for the ongoing comments that were not read only (read only set on the ongoing comments fields via javascript after they are filled) took care of the issues I was experiencing.  

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.