Hidden required fields

J

jadedwish

I setup a Travel Request form that allows user to select different
options for travel,whether they need: train, air, hotel or car. If any
of the options are selected then optional fields show up for them to
fill out (like pick times and train/air options,etc.) and if these
options are not selected then they do not show up on the form. Problem
is even when you don't have the option selected it forces you to fill
out the required fields in this sections when you hit submit.
Ex.if you are only taking the train, you have to fill out the required
information under the Train, Airline, Hotel and Car section. I want to
fix the form so that you only have to fill out the required area(s)
that's visible (or selected). Can anyone help me with this. Thank you!
 
R

Ramana

Hi,

Delete all validations when we are submitting the form.

use this method

thisXDocument.Errors.DeleteAll();

I hope this will help for you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top