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

Question

Question

Comments in Forms User Tasks

asked on January 21, 2021

Is it possible to grab what has been entered in the default comment field for previous user tasks, and add it to a custom report ran out of Forms?

 

We have multiple tasks that have been "rejected", and wasn't sure if there was a quick way to get those comments for those specific instances into a report.  Any help or guidance would be greatly appreciated.  Thanks!

1 0

Replies

replied on January 22, 2021

Hello Bill,

 

The default comment textarea of the forms task has the html ID "comments" so you can get it by some jquery script and move it to a textarea that you have in the forms.

The code below may help.

 

$('input[type="Submit"]').click(function(){

$('.Mytextarea textarea').val($('#comments').val());
$('.Mytextarea textarea').trigger('change');


});

Or you can put a comment textarea in the form, and use radiobuttons instead of the approve reject submit default buttons of the forms, and manipulate the comment textarea through field rules if needed since the forms default comment box cannot be manupulated through fields rules.

Regards.

Maher.

2 0
replied on January 25, 2021

Thank you for the response.  I was trying to somehow get comments that have already been made and "submitted" through a previous task.

I'm guessing that isn't possible since I didn't have a hidden text area already setup to grab the comments?  Thanks!

0 0
replied on January 25, 2021

Hey bill,

 

Yes, its somehow impossible to get all the past submitted comments.

Try to also look into the second method i mentioned above, it may be easier and more controllable, since you can put the comment required or not, and even create 2 textarea (comment, reason) so it shows the reason (required) when the user select rejected from the radio button.

 

Regards,

Maher.

0 0
replied on January 25, 2021

Thank you for your help!

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

Sign in to reply to this post.