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

Question

Question

Forms email activity and ampersand results

asked on June 30, 2017

I know this was addressed in 2015 (see https://answers.laserfiche.com/questions/73850/Remove-Ampersand--in-the-token-values-before-passing-as-Values-in-URL#74079) but they are using complicated code steps that I am not familiar with.  It's also been two years since the original posts and I'm hoping the fix is easier now.

We have just begun using Laserfiche Forms this year and have come up with our first case of this.  In our Fire Permit process, an applicant typed his name as John & Jane Doe.  The resulting email to him, using a token for the name field, came out like this:  "Dear John & Jane Doe:..."

So, what exactly can we do about this?

0 0

Answer

SELECTED ANSWER
replied on June 30, 2017

Sorry, try this instead: [^&]+

1 0

Replies

replied on June 30, 2017

You can use regular expressions on the field to not allow for the ampersand and other special characters. That will prevent what you described.

1 0
replied on June 30, 2017

Hmmm... what would that regular expression look like?

0 0
replied on June 30, 2017

^[&]

0 0
replied on June 30, 2017 Show version history

I put that in the application form's Name field, in the Advanced Tab, in the Regular Expression for validation spot.  Then did a test and entered John & Jane Doe, got the Invalid input response; then took out the & Jane part and the invalid input did not clear.  So I refreshed; did not clear.  So I closed that test, went back to the form and opened a new test.  I still got this:

I have removed it for now, so that it doesn't stop someone from applying for a permit right now.

0 0
SELECTED ANSWER
replied on June 30, 2017

Sorry, try this instead: [^&]+

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

Sign in to reply to this post.