• Resolved tommienl

    (@tommienl)


    Hello Franky,

    I have some struggles with creating dynamic fields. I hope you can point me in the right direction…

    Scenario:
    1 Adult (parent) can register multiple kids to an event.
    Max Reservations 5 \ Min Reservations 1
    I’d like to repeat an form for registering the kids (depending on selected seats)
    I’ve made an template with data fields regarding the kids (name / age / schoolinfo / etc).

    Dynamic settings:
    Field \ Condition \ Condition value \ Template \ Repeat\ Grouping Index
    #_SEATS \ Contains \ 1 \ Kids \ Yes \ 1

    Behavior:
    When i fill in condion: 1 nothing appears (default is 1 seat?)
    When i fill in condion: 2 The dynamic data appears 1 time. But when im selecting multiple seats the template is only displayed one time.

    I’ve tried multiple settings but im not able to repeat the template for registering multiple kids’. Am I doing something wrong / am i on the wrong path here?

    Greets Tommie

    • This topic was modified 5 years, 9 months ago by tommienl.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Franky

    (@liedekef)

    “Contains” is a text comparison, it won’t work as expected on numbers.
    Change that to “greater than or equal to” or “greater than” and see the magic ??

    Thread Starter tommienl

    (@tommienl)

    Thanks for the reply.

    When i use “greater than or equal to” with the Condition value of “0” the template repeats itself 2 times. But when i change the amount of seats the same 2 templates appear.

    When i use “greater than or equal to” with the Condition value of “1” only one template appears. Changing the amount of SEATS wont repeat the template. (the same happens when using “greater than”.

    It is also stating (at the RSVP tab under Dynamically show fields based on a number of conditions):
    The selected template will be shown several times if the repeat option is used (based on the number of times the field is different from the condition value. This is not used for the ‘equal to’ condition selector.

    Does this interfere what I want to accomplish?

    Plugin Author Franky

    (@liedekef)

    If you use #_SEATS in your condition, you need to use #_SEATS in your rsvp form definition too (not #_SPACES or so). I just tested it here and the repeat is working fine. Feel free to post your rsvp form template too.

    Thread Starter tommienl

    (@tommienl)

    Hello Franky,

    Indeed I had the #_SPACES definition still stated in the initial form. After deleting #_SPACES and using only #_SEATS the repetition works!

    Many thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Struggles with dynamic fields’ is closed to new replies.