• Resolved missbritt

    (@missbritt)


    I am creating a registration page for an event with 5 ticket types – golf, games, tennis, etc. – and each type requires it’s own set of additional custom fields. I’m able to get all off the custom fields displayed now (thank you!) – but the page is getting lengthy. Is there a way to use custom rules to display custom fields only if certain types of tickets have been selected?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    There’s a filter called ‘mt_apply_custom_field_rules’; unfortunately, in reviewing it to answer this question, I noticed that it was running in a manner that would prevent it from working consistently. You *can* use it; you’d have to add a non-numeric value other than ‘global’ as your ‘context’ value.

    E.g., ‘context’ => ‘custom’, then add a filter that applies your custom rules. The filter receives the field array and the event ID to manipulate.

    Thread Starter missbritt

    (@missbritt)

    Unfortunately, I have no idea what this means. ??

    Plugin Author Joe Dolson

    (@joedolson)

    Question: are these ticket types all part of the same event registration? Or are they separate?

    Thread Starter missbritt

    (@missbritt)

    In this case, each of these ticket types are part of the same event. All of these are options for the same registration – but not everyone will choose all of these options.

    For example, a couple may register together and choose golf (which needs additional info collected) and card games (which needs additional info collected.)

    Plugin Author Joe Dolson

    (@joedolson)

    Well, that’s different then what I was thinking initially. The only way you’ll really be able to do that is by using custom JS to dynamically show and hide options based on chosen ticket types. That’s doable, but it’s outside of what the core plug-in handles.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Possible to Use Custom Rules for Custom Fields’ is closed to new replies.