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

Question

Question

Fill Out PDF Form Table from Laserfiche Forms - Duplicate Values

asked on June 18, 2015

Hello,

Following another post in Laserfiche Answers, I am able to populate a table in the Fill Out PDF Form activity successfully.  My problem is the PDF output contains duplicate values.  Tracking the token also shows duplicate values.  Screenshots are attached.

 

Any help would be appreciated.  Thanks!
 

0 0

Replies

replied on June 18, 2015

Resolved.  I was associating the wrong activity in the Assign token Value within For each row.

1 0
replied on June 18, 2015

Files attached.

error.docx (135.82 KB)
0 0
replied on June 18, 2015

How are you generating the token? Where do the duplicate values come from?

You could run the "Remove duplicates" token function on the token when you assign it to the field.

0 0
replied on June 18, 2015

The original token is being generated from a LF Form.  I pulled in the values using the Retrieve Forms Content activity.  Tracking the token, the value is not duped.  Then I used the Assign Token Value to create a multi-value token using the values retrieved from the form.  I then added another Assign Token Value (which runs within the For Each Row activity) which appends the previous  Assign Token Value to populate the table in the PDF.

 

I applied "remove duplicates" to both Assign Token Value activities (separate tests), but that did not resolve the issue.

0 0
replied on June 18, 2015

Ah, I assigned it to the token in the PDF table.  That did it!  Thanks!

 

It works, but it seems to be a workaround.  In other posts, there is no mention of dupe values.  Any idea of why this might be happening?

0 0
replied on June 18, 2015

If i get this right, you're creating a token, then assign it the values from the field in Forms, which is a multi-value field. So that's the first 2 values. Then iterate through the same token for the Forms field and assign each value individually to this token. So that's the next 2 values.

0 0
replied on June 18, 2015

Well, upon further testing, that did not work.  Since a couple of the fields are drop-down choices in the form, it deletes all like values.  So if the value yes is chosen in different entries, it deleted all of them except the original.

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

Sign in to reply to this post.