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

Question

Question

File Upload Troubles in Forms - When a file is uploaded to a form, the Save to Repository Image is broken

asked on March 21, 2014

I am finding that when I am submitting a form with an uploaded file attached, the image that is generated using Save to Repository is not reflective of the form that was just submitted.

 

The form itself has several field rules, and when filling out the form everything works as intended.  When the form is submitted without uploading a file to it, the image of the form comes out perfectly in the repository.  However, if I upload a file to the form and then submit the form, the image in the repository seems to neglect the field rules and the fields shown on the image are incorrect.

 

Has anyone else encountered this issue/bug?

0 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on June 3, 2014

I would like to update that a hotfix has been released to address the issue specified in this topic.  Here's a link to the hotfix:

 

https://support.laserfiche.com/KB/1013483

0 0

Replies

replied on March 21, 2014

Hi Travis,

 

What's your Forms version? Do you mind sharing the business process so that I can look into it?

 

Best wishes,

Abby

0 0
replied on March 21, 2014

Hi Abby, I'm using Forms 9.1.1.1517.

 

I'm assuming your email is abby.shen@laserfiche.com.  Should I send my BP to that address?

replied on March 21, 2014

Yes. You can send it to this address. Can you provide more detail in email? eg. which field rule.

replied on March 21, 2014

Thanks Abby, I've sent you the BP file and some samples of the symptoms.

0 0
replied on March 23, 2014 Show version history

I've narrowed the symptoms down.  This may help your team to troubleshoot the issue.

 

1. I created a new BP and form, and added a single-line field to the form. The default value of this field will be the current user token. Assign the CSS class to the field: ToBeReadOnly

 

2. Add the File Upload field to the form.

 

3. In Javascript, make the single-line field read-only to prevent the user from modifying the first field, but still be able to capture the value when the form is submitted to the repository:

 

1 $(document).ready(function () {
2   $('.ToBeReadOnly input').attr('readonly', 'True');
3 });

 

4. Test submitting the form with and without attaching a file.  You'll notice that if you do not attach a file, the value in the first field will stay in the image. If you attach a file, the field value will end up clearing and is not captured.

 

This explains why the image of the form doesn't come out right when attaching a file, because when it generates the image, the read-only fields that have field-rules assigned to them fail when the values are cleared.

 

I'll update the support case with this same information.

0 0
replied on March 24, 2014

Hi Travis,

 

This is a bug that we had filed recently. We will update this thread once a fix is available.

 

Regards

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

Sign in to reply to this post.