• Resolved shetlandshake

    (@shetlandshake)


    Hi there,
    I can’t figure out how to make this work even after reading similar topics

    My issue is as follows –

    As a user, I fill out some conditional field
    Then I change my selection which hides the conditional field
    I submit my form

    As the recipient of the email, I still see the fields being captured, even though the user changed their mind – making it difficult to read.

    I would like to either not include the collapsed fields in the email response OR clear the previous selections on hide (in which case they would be empty fields and not appear in the email – theoretically)

    In the link above, I am testing the bottom bit
    Form code looks like this

    <label> Please select</label> [radio TEST-CONDITION default:1 "YES" "NO"]
    [group GROUP-TEST clear_on_hide]
    <LABEL>TEST THE TEXT: </LABEL>[text TEST-TEXT][/group]

    Condition is:
    show GROUP-TEST if TEST-CONDITION equals NO

    In the mail tab:

    <strong>TEST radio:</strong> [TEST-CONDITION]
    
    <strong>TEST THE TEXT:</strong> [TEST-TEXT]

    Can you please help?
    Thanks!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    To clear gaps, make sure you open a new group right after closing the previous one, without any spaces or newlines.

    BAD example:

    
    Hi, thanks for fillin out our form. Here is the data you entered:
    [group-1]
    Field 1: [field-1]
    Field 2: [field-2]
    Field 3: [field-3]
    [/group-1]
    [group-2]
    Field 4: [field-4]
    Field 5: [field-5]
    [/group-2]
    [group-3]
    Field 6: [field-6]
    Field 7: [field-7]
    [/group-3]
    

    GOOD example:

    
    Hi, thanks for fillin out our form. Here is the data you entered:
    [group-1]
    Field 1: [field-1]
    Field 2: [field-2]
    Field 3: [field-3]
    [/group-1][group-2]
    Field 4: [field-4]
    Field 5: [field-5]
    [/group-2][group-3]
    Field 6: [field-6]
    Field 7: [field-7]
    [/group-3]
    
Viewing 1 replies (of 1 total)
  • The topic ‘Conditional fields won’t clear with clear_on_hide/’ is closed to new replies.