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

Question

Question

Looking for help with sending last comment entered via an email task

asked on March 20, 2018

We have the need to store multiple comments on a form along with the entry date and user who entered the comment.  If the user clicks a custom action button such as "update customer" we would like for the last comment entered to be sent via an email task.  

Our first thought was to use a collection to store the comments and use Java? to retrieve the last comment during the submit action from the collection and copy then to a hidden comment variable used in the email. Our second thought is to use two milt-line fields and append  the "current" comments to the historical comments and use the "current" comments in the email task.

Has anyone done anything similar to this?

I would appreciate and comments/guidance on how to achieve this.

 

Thanks

0 0

Replies

replied on August 15, 2018

Did you have any resolution to this?  I am experiencing the same problem.  I can get the comments on the form without a problem, but I can't seem to get anything to work in the actual emails.

0 0
replied on August 16, 2018

Yes I did.

In summary, I used a collection with a multi-line text field to store the comments and a checkbox field to allow the user to select to send the comments to the customer via email.

On submit of the form, I iterated through the collection to see if any checkbox was selected and if so,  I copied the comment(s) into a single multi-line field that I then sent via email to customer. I am using the same collection on multiple forms, so on load, I cleared the checkbox(es) and the single multi-line comment field in case it was populated during the last submission.

I can put together Code snippets if you'd like.

0 0
replied on August 16, 2018

I have been attempting to do the same thing, but I didn't think to clear the fields on load.  If you have code for that, I'd be grateful.  I can probably manage to adjust it to my needs...I hope.

0 0
replied on October 18, 2018

Hi,

My apologies, I totally forgot to send the code to you for this. Do you still need it?

0 0
replied on October 26, 2018

I found a work around.

Thanks.

0 0
replied on November 1, 2018

OK. Once again, sorry for the delay.

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

Sign in to reply to this post.