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

Question

Question

Form - Save to Laserfiche - PDF/Tiff fields missing

asked on April 12, 2014

Hi,

 

I am using CSS and Java Script to hide / unhide fields on my form.

 

This is due to the fact that it is a large form and the Field rules (more than 30) make the form very slow to load. Therefore all the field rules were converted to CSS and Javascript page.

 

However, when unhiding a field and entering text into the field.... then saving to Laserfiche repository in PDF or Tiff format these fields are not displayed.

 

Thanks for your help.

 

Daryl

 

1 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on April 14, 2014

The reason these fields are hidden is that when Forms saves a form submission, it opens the submission in the browser to capture the image. All of the JavaScript on your form will run when Forms does this, so if you have JavaScript that hides fields, those fields will be hidden. So, you need to do something to tell the JavaScript not to run.

 

If you only want to hide fields on the initial submission, you could wrap the JavaScript you're using to hide fields inside an IF statement, like this:

$(document).ready( function() {
if($('input[name="routingResumeId"]').val() =="") {
$("#ID").addClass('hidden'); //here's where you'd hide your fields, based on ID or class
}
});

Fields hidden this way will not be visible to the user filling them out, but will be visible in other tasks after the form has been submitted.

 

Another way to handle this is to make a copy of the form, remove the JavaScript that hides fields from the copy, and then use the copy in your Save to Repository service task.

0 0
replied on April 14, 2014

Thanks Eric.

 

i went with the create a copy and removed the java on the copy.

then modified the "Save to Laserfiche" step to submit the copy. 

I went to sleep last night and this idea popped into my head... Great to wake up the next morning and someone else recommends doing it that way.

 

i've made the changes and everything is looking good. 

 

Daryl

0 0
replied on March 2, 2015

When I add the code for a specific field it is hidden as expected when I first load the form but after I submit and it goes to the Save to Laserfiche task it does not unhide the field for some reason.

Any thoughts why this might happen?  Is it possible that the "routingResumeId" never gets a value and that is why it doesn't get unhidden?


It is likely a rookie mistake on my part.

0 0
replied on March 2, 2015

Actually I had the code working for regular fields but I want to do this with a Section.

But the opposite logic to have the section visible initially and to hide it after submission so it is not visible in Save to Laserfiche step.

0 0

Replies

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

Sign in to reply to this post.