Conditional hidden fields failing required validation constraint

9 years 1 month ago #262090 by Freshpage
I have a radio button with yes/no options.

I have 3 required fields which are conditional on the radio button (settings are in the image below below).

The showing/hiding of the fields is working fine, but when they are hidden I am getting validation errors telling me that the fields are required.

Here are the settings:



These are my version numbers:

Joomla 3.3.2
CB 2.0.7
CB Conditional 4.0.5

Thanks for any help
Attachments:

Please Log in to join the conversation.

9 years 1 month ago #262103 by krileon
What type of fields are you hiding and where exactly is it doing this? Profile edit? Registration? or maybe both? Please upgrade to CB 2.x nightly found below as some fixes have been made to the validation that this could be a symptom of.

www.joomlapolis.com/downloads/doc_details/640-community-builder-nightly-build


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

9 years 1 month ago #262106 by Freshpage
The 3 hidden fields are Text, Date and File upload. I get a validation error message for each of them.

I'm getting it at both registration and profile edit.

I've updated to the nightly build but it didn't fix it.

Please Log in to join the conversation.

9 years 1 month ago #262108 by krileon
Are you getting the validation errors before submitting the page or after it submits? If it won't even let you submit then the jQuery is validating right and it'd be the PHP side of things going wrong.

Also note your value is being translated. It's possible Yes is being translated into a value PHP side that doesn't match. Turn off translation for Value then retry. Maybe also try with a new value to see if issue persists.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

9 years 1 month ago #262110 by Freshpage
It is a validation error generated by PHP: the page submits but I get 3 error messages in the system messages position.

I tried changing "Yes" to "Test" and I got the same result: the field shows and hides correctly but validation fails. I also tried switching off translation.

Please Log in to join the conversation.

9 years 1 month ago #262155 by krileon
Disable non-core CB plugins 1 by 1 (excluding CB Conditional) within CB > Plugin Management and see if issue resolves as it could be a conflict of some sort from another plugin. If issue persists repeat with non-core Joomla system plugins within Extensions > Plugin Manager.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.198 seconds

Facebook Twitter LinkedIn