CRM-17902 Participant custom fields not shown on registration form

    Details

    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      I just tried this on the Drupal sandbox:

      • Create a custom field set for Participant (general, not for a specific event or specific type)
      • Add a custom field: 'Wants to carpool'. Choose 'yes or no' as type, and make it required.
      • Now try to register someone for an event.

      The custom field is not shown, but you get an error message because the required field 'Wants to carpool' is not filled out.

        Attachments

          Activity

          [CRM-17902] Participant custom fields not shown on registration form
          Johan Vervloet added a comment -

          As a workaround, you can change the custom field set so that it is used for 'Participant (role)', and select 'any role' from the role-drop-down.

          Changing the 'used for' to 'participant (role)' cannot be undone, as it seems.

          Johan Vervloet added a comment -

          More exact: changing the 'used for' cannot be changed using the ui once it is used for a participant.

          Brian Shaughnessy added a comment -

          here's a proposed fix for this:
          https://github.com/civicrm/civicrm-core/pull/8033

          I'm not crazy about the fix, as it's basically just fixing something that is broken upstream. it seems like this particular null string fix is already happening in preprocess, but for some reason, it's not getting hit there.

          Jitendra Purohit added a comment - - edited

          Submitted a PR https://github.com/civicrm/civicrm-core/pull/8050 fixing it in the upstream from where it is initiated

          Rohan Ramesh Katkar added a comment -

          Tested above PR. Works fine.

          Rohan Ramesh Katkar added a comment -

          Tested the PR. Works fine.

            People

            • Assignee:
              Rohan Ramesh Katkar
              Reporter:
              Johan Vervloet

              Dates

              • Created:
                Updated:
                Resolved: