Support » Plugin: Contact Form 7 Multi-Step Forms » conditional field group shown in email

  • Resolved CDHeumann

    (@cdheumann)


    Hi there,

    i’m using this plugin in combination with conditional fields (conditional fields plugin)

    Everything works fine but i cant show conditional field group in my email.

    For example (2-step-form)

    Step 1:
    If i choose option1 in a select field i get groupname1 (product infos – only text)
    If i choose option2 i get groupname2 (product infos – only text)

    Step 2:
    Shows me my selection of Step 1 “option1” or “option2”

    In the email i want to show the infos of group 1 or 2 depending on my selection in step 1. But at the moment it shows me the infos of both groups.

    Step 1:

    [group groupname1] product infos 1 [/group]
    [group groupname2] product infos 2 [/group]

    E-Mail in Step 2:

    [groupname1] product infos 1 [/groupname1]
    [groupname2] product infos 2 [/groupname2]

    Is this a known issue?
    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author webheadcoder

    (@webheadllc)

    Hi,

    I think what you need to do is add the conditional field rules to the 2nd form. The problem is the Conditional fields tab will only show groups and fields of the current step. So what you can do is add hidden fields or multiform fields to your second step so the conditional fields can see it.

    For example:

    Step 1:

    [select your-select "product1" "product2" "product3"]
    [group groupname1] product infos 1 [/group]
    [group groupname2] product infos 2 [/group]

    Step 2:

    [hidden your-select]
    [group groupname1][/group]
    [group groupname2][/group]

    On the Conditional Fields tab create the same rules you did on Step 1.

    If you’re already using [multiform your-select] in the second step then you don’t need [hidden your-select]. It just depends if you want to show or hide the your-select field. The main thing is you need to re-define the conditional field rules in the 2nd step.

    Plugin Author webheadcoder

    (@webheadllc)

    assuming this worked? marking as resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘conditional field group shown in email’ is closed to new replies.