I've been having a play with the conditional fields (Beta2) and these seem to be working fine with the exception of the very first combo I tried, a singular checkbox that triggers the form to display additional items. If I changed this to multivalue checkboxes or radios, then it worked as expected.

Set up
=====================================================================
Name, textfield required
Field2, textfield, not required
Additional info, select/multiple [yes|Supply additional information]

Page break

Additional field, conditionally show if Additional info == yes
=====================================================================

I got this working for this combination by removing the "Always save at least something, even if it's an empty single value." lines in the select submit and defaulting $show_component to FALSE when the input values are empty and the test values are not.

Since I spent a hour tracking this down, I took the 5min to checkout the dev version to create a patch. Since I can not see why the other lines were there in the select submit callback, this patch will probably break something else???

Comments

quicksketch’s picture

Status: Needs work » Fixed
StatusFileSize
new848 bytes

Thanks for the patch Alan! The "Always save at least something..." had already been removed, so I committed a change that included your second part of the patch, fixing the condition when there is no value at all being submitted (which can happen with checkboxes when no item is checked at all).

alan d.’s picture

Excellent, that was the last patch against our beta2 version removed! Thanks

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.