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

Question

Question

Phantom "Required Fields"

asked on April 7, 2014

 

 

 

 

Hi,

 

I have a form I'm working on that is big. 150ish Fields.

 

It did have 30 something field rules but that made the form to slow to load.

 

I deleted all the rules and converted the hide / unhide process to the CSS and Java page.

 

All works very well.

 

However when I turn on required fields I have a phantom "Required Field" that stops me from submitting

the form. The "Required Field" message pops up and doesn't particularly identify any fields that still require filling.

 

Any suggestions in how to track down the "Phantom Required Field" would be appreciated.

I've attached my business process for reference - just change the extension back from .txt to .xml.

 

Thanks

 

Daryl

 

0 0

Answers

APPROVED ANSWER
replied on April 7, 2014

Hello Daryl,

 

Nice Form, must have taken some time.

 

I have looked through it, filled it in and am trying to submit. I, like yourself, am getting an error about Required Fields.

 

So then I decided to work through it, and I have found that if I fill in EVERY required Field, even those that are optional through the rules you have configured, then I am able to submit the Form.

 

Basically the issue is that you have the hidden fields for extra information, and you have set them as required. It seems by your method that even whilst they are hidden, the information is still required to submit the Form. If you fill all of these in you can then submit it.

 

At this point, you are faced with a few options. Perhaps you can go through each hidden field that is required, and add a rule so that they are required only when they are shown. 

 

The second option is of course to make these fields non-required, although this may not suit the business requirement.

 

See here for more information on CSS in Laserfiche: 

http://www.laserfiche.com/support/webhelp/laserficheforms/9.1/en-us/forms/Content/FormsCSS.htm

http://www.w3schools.com/cssref/css_selectors.asp

 

2 0
replied on April 7, 2014

This is correct. Required fields remain required even if they are hidden. I'd recommend setting the "required" attribute on the field's input box to true or false programmatically. You can also add the "required" class to a field to give it the appropriate style.

0 0
replied on April 7, 2014

I agree. Setting the required field to on when the box is visible and then off when hidden would be the best way to do this.

 

I will give it a go.

0 0
replied on April 14, 2014

Unfortunately by using Java script to hide fields causes the fields to not be visible when the save to Laserfiche option is used. Tried both PDF and tiff.

 

the fields just stay invisible and never turn up when submitted to Laserfiche.

i also checked the results page in forms and they don't appear here either. 

 

Any suggestions? Very close to getting this whole form to work, but unless I can make the fields visible .....

 

Any suggestions? Happy yo load the form up again for checking.

 

Daryl

0 0
SELECTED ANSWER
replied on April 14, 2014

If you're using Save to Repository, one of the easiest solutions is just to create a copy of the form without any JavaScript and save that copy to the repository with the Save to Repository service task.

0 0
SELECTED ANSWER
replied on April 14, 2014

If you're using Save to Repository, one of the easiest solutions is just to create a copy of the form without any JavaScript and save that copy to the repository with the Save to Repository service task.

0 0

Replies

replied on April 7, 2014

Hi Daryl,

 

Which version of Forms you are using?

0 0
replied on April 7, 2014

Abby,

 

Fairly new install - the customer is running 9.1.0.1441.

 

I will be looking to set the required field in the script.

 

Thanks

 

Daryl

 

 

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

Sign in to reply to this post.