Hello,
I am using the Conditional Fields module with the Entity Registration module and Drupal Commerce. I have some dependencies setup so if you choose for instance "Are you a member district" a list of Member Districts to choose from show up. So that's working great.
The problem is that a user can register for more than one event, so after they have added the two events to their cart and go to check out, they need to fill in the registration forms for both. It seems that Conditional Fields only works with the first registration form, but since there are two forms on the same page, the dependency has no affect on the other form. (See Screenshot). This can become a huge issue because it is possible that users will be registering for multiple courses, events, workshops, etc. on this site so we want to make it as clean as possible.
The screenshot shows an example of the conditional field working on the left, and not on the right.
Comment | File | Size | Author |
---|---|---|---|
#7 | Screen Shot 2017-05-27 at 1.17.12 PM.png | 26.01 KB | mchampsee |
#1 | conditional_fields.patch | 1.33 KB | Oliver Huynh |
Screen Shot 2013-04-01 at 9.39.51 AM.png | 15.08 KB | TravisJohnston |
Comments
Comment #1
Oliver Huynh CreditAttribution: Oliver Huynh commentedI got this bug also. Check out attached patch to fix the issue.
Comment #2
peterpoe CreditAttribution: peterpoe commentedCommitted, thanks!
Comment #3
peterpoe CreditAttribution: peterpoe commentedHad to revert this change, since it breaks checkboxes and radio buttons as dependees. You can use the custom jQuery selector option to adjust to your needs.
Comment #5
HitbySorry to seem dense! I'm having the same issue with multiple fields over a registration form. Could you advise how to use the custom jQuery selector option?
Cheers!
Comment #6
JordanMagnuson CreditAttribution: JordanMagnuson commentedDuplicate of https://www.drupal.org/node/2530770
See proposed patch in that issue thread.
Comment #7
mchampsee CreditAttribution: mchampsee at Champsee Solutions, LLC commentedComment #8
mchampsee CreditAttribution: mchampsee commentedJust noticed something...
I was getting an error that read
which is within the
drupal_process_states
function which gets called bydrupal_render
when I had a conditional field being used in a multiple field. I put adsm($elements)
at that spot and found that I got an array with 3 items in it. Other fields using states which are working in multiple forms as well as conditional fields in a regular form have over 20 items. It looks like somewhere that array is getting truncated.