Hello,
I have an application form that users complete. Using Javascript and CSS section, some of the fields on the form are hidden and only displayed for completion based on certain criterias being met. I am then saving the form to Laserfiche repository.
The issue is that when the form is submitted, the originally hidden fields on the form are once again hidden, thus, when the form is saved, it only shows the fields that were not originally hidden using JS. I have created a workaround by making a copy of the original form, removing all the JS, then saving the copy in my save to repository task. Problem is, now ALL fields are shown on the saved file which some have nothing to do with the application type the user selected.
I would like to save in the repository file, all the fields that were completed (or not blank).
How do I write this in Javascript to hide all blank fields after the form is submitted?