0

I have a Drupal 9 CiviCRM Webform with a Membership field.

Membership field

I added a membership in Civi called "Select Your Membership" and have made that the default membership when a user selects their membership on the Webform. I am not letting the form be submitted if that membership is selected. It just gives me a good default value.

If the membership field is on a page then the default is always saved as the membership type even when I select another membership.

enter image description here

If the field is outside of the page container then it works correctly, and the membership selected in the Webform is reflected in CiviCRM. The data is also incorrect when viewed on the Webform results tab.

Can the membership selection field be shown on a specific page or does it need to be outside of the containers?

Thanks,

Josh

3
  • This sounds like a nasty workaround for getting the option to not have a default, is that right?
    – petednz - fuzion
    Jul 8 at 22:33
  • @petednz-fuzion it is a nasty workaround but the issue is not with the workaround. The workaround itself works well. If I let a different membership be the default then it will use that membership rather than the one selected. The issue is if the membership is inside a page then it just uses the default rather than the membership selected. Thanks!
    – Josh
    Jul 9 at 3:29
  • ok. yes i gather you have found another bug. just for completeness re the workaround my suggestion was meant to leave nothing set as default.
    – petednz - fuzion
    Jul 9 at 10:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.