Hi there,
I have a tab on my users profile/registration called Vehicle Info that has the following elements:
Own a Scion? No/Yes - dropdown select (Required - Default = No)
Values: 0 -> No, 1 -> Yes (2 -> I am a Dealership)
(tried to add option 2 -> I am a Dealership - but it broke my conditional requirements)
If No selected, hide the rest of the fields, if Yes selected, show the following:
Model Year - Dropdown select (required)
Model Name - Dropdown select (required)
Model Color = Dropdown select (required)
VIN - text field with REGEX VIN check (required)
Model Photo - image (not required)
Conditional Settings on field cb_own_scion:
Code:
Display: Field conditional others
Is... Operator -> Equal To
To... Value -> 0
Translate Value -> Yes
Then... Fields -> Show -> none
Fields -> Hide -> cb_model_year
-> cb_model_name
-> cb_model_colour
-> cb_vin
-> cb_model_photo
Field Options -> Show -> none
Field Options -> Hide -> none
For...
Registration -> Yes
Profile Edit -> Yes
Profile View -> Yes
Userlists Search -> No
Userlists View -> Yes
This was working fine until I tried to add an extra select option to "Own a Scion?" -> "I am a Dealership" - with my simple 0/No, 1/Yes select, I could set to no and I am not required to input any vehicle information, if set to yes, the vehicle info is now required to complete the form.
Now, the fields will hide if set to 0/No, but get error saying the Year, Model, Colour, and VIN are required fields. Why did adding an extra select option break this? I had changed the conditional settings to:
Is... Operator -> Not Equal To
To... Value -> 1
Translate Value -> Yes
I had even tried setting conditional settings for each of the vehicle info fields and still no luck.
The reason I am doing it this way, is if a visitor wants to join the site, but doesn't have a Scion they can't be expected to fill out the required vehicle information, the other scenario is if they are a Scion Dealership (which I was trying to add last night) they don't need to have vehicle information filled out. I also had it if they said no to Own a Scion, the member list would show "I don't own a Scion yet..." and I wanted to add "I am a Scion Dealership" if they selected Dealership. Both scenarios would not require vehicle info to but filled out, but if they said Yes, then the vehicle information fields are required.