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

Question

Question

Task reviewer uses 'Enter' for comments, prevents next task from completing

asked on December 2, 2015

I have a form that goes through multiple approval processes.  When a task participant uses the 'Enter' key to enter a line break (< br >) it causes an error when the next participant tries to approve/reject the submission.  

This also returns an error in the Event Viewer, but there is no way to prevent the user from doing this...  Here is the event log:

Message: A potentially dangerous Request.Form value was detected from the client (Field70="Nate,
<br>This looks good").

Here is a jing of the error that occurs.  

http://screencast.com/t/b5yUbKI4MIID

Any help is much apprecaited,  this is causing major errors and preventing our process from moving forward.  

Thanks,

Nate

0 0

Answer

SELECTED ANSWER
replied on December 4, 2015

Hi Nate, 

Since the issue has been fixed in Forms 10, you can use following javascript to get rid of "<br>" tags in your field with {dataset\comments} token so submission won't be blocked.

$(document).ready(function() {
  var roField = $('#Field2');
  roField.attr('disabled','disabled');
  var brString = roField.val() || "";
  roField.val(brString.replace(/<br>/g,""));
})
  1. Replace "#Field2" with the field id that has {dataset\comments} token, and
  2. Please make sure that field (field with {dataset\comments}) is not read-only (the script will make the field read-only so don't worry about that)

 

after that, the <br> tags will be removed from that field, and submission should work.

 

1 0

Replies

replied on December 2, 2015

Hi there,

Which version of Forms are you using?

0 0
replied on December 2, 2015

I am using Forms 9.2.1.1069

Note: the comments on the first form (with line break) are filled into a text area field within the 2nd form using the token {dataset\comments}.  It's odd because the  text area should allow line breaks, but for whatever reason it's putting a <br>

0 0
replied on December 3, 2015

Hi Nate,

 

Yes I can recreate your issue.

We will look into that.

Thanks!

 

0 0
replied on December 4, 2015

Thanks Lifei, it appears the issue was fixed in 10 - see below, but until that has been vetted I do not feel comfortable upgrading my production system to Forms 10.  Can you please let me know when this will be corrected in 9.2?  

https://answers.laserfiche.com/questions/74027/Forms-inserting-HTML-code-into-tokens#87978

Thanks,

Nate

0 0
replied on December 7, 2015

Thanks Lifei, this did the trick!

0 0
replied on January 8, 2016

Hi there,

This issue is addressed in Laserfiche Forms 9.2.1 Update 1

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

Sign in to reply to this post.