• Resolved nero2001

    (@nero2001)


    Hi, congratulations on your plugin, I like it and it does its job quite well. Currently I have set up 4 pages with multi step forms, within these forms there are conditional fields that depending on the user’s answers are shown.
    These conditional fields are inserted in the forms on pages 1, 2 and 3, whereas page 4 only contains personal data.
    Everything works fine, except for the formatting of the email I receive, because within it are all the [group] fields, not just those filled in by the user. The email this way is a bit confusing and I would like to see only the fields within the groups that are filled in (as the conditional fields plugin normally does).

    For example:
    
    Where do you want to travel?
    
    [select* country include_blank "Bhutan" "Burma" "India"]
    
    and I have groups with specific information in them called:
    
    [group bhutan].
    [group burma]
    [group india]
    
    For the creation of the email instead I have:
    
    Destination: [country]
    
    [bhutan]Tour: [tour-bhutan][/bhutan]
    [burma]Tour: [tour-burma][/burma]
    [india]Tour: [tour-india][/india]
    
    and the email I get is:
    
    Destination: [country].
    
    [bhutan]Tour: [tour-bhutan][/bhutan]
    [burma]Tour: Trip to Burma[/burma]
    [india]Tour: [tour-india][/india]

    How can I solve this?

    Thank you

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

    (@webheadllc)

    Hi,

    I think using hidden fields might solve your problem. I’m assuming the fields you’re conditions are based on are not on page 4.

    For example if the bhutan group checks if tour-bhutan is empty or not, you would add [hidden tour-bhutan] in the form on page 4. The multi-step plugin would populate this hidden field and let it be submitted with the form. The conditional fields plugin can then see it and do its thing.

    Thread Starter nero2001

    (@nero2001)

    I solved it!

    I actually didn’t need to insert the hidden fields, because the plugin effectively transports the fields from pages 1, 2 and 3 to page 4.

    Your reasoning, however, made me think of an alternative solution.
    I changed the email setting, where I wrote:

    Where do you want to travel? [tour-bhutan][tour-burma][tour-india]

    As only the field filled in by the user is displayed, the other 2 are hidden and so I get the result I want.

    This way I don’t have to enter group tags in the email.

    Thanks anyway

    Plugin Author webheadcoder

    (@webheadllc)

    Glad you solved it. thanks for the update!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Email with tag groups conditional fields’ is closed to new replies.