• Resolved lionelipacs

    (@lionelipacs)


    Hello,

    I’m trying to use conditional fields but can’t seem to get it right. On the front end, on my page, the form conditions work, but I can’t configure the email correctly.

    Here are my codes:

    [uacf7_step_start uacf7_step_start-901 "Step One"]
    <label> Your name
        [text your-name] </label>
    <label> Your email
        [email* your-email] </label>
    [uacf7_step_end]
    [uacf7_step_start uacf7_step_start-902 "Step Two"]
    
    <label><strong>GTR (in hours):</strong>[select GTRenheure id:GTRenheure first_as_label "Choose a GTR" "GTR 4H HO (included)" "Option GTR 4H-24/7 (35€/month)"]</label>
    
    [conditional condiGTRfree]
    <label><strong>GTR Fee (monthly):</strong>
    [text gtrfree class:gtrfree "0€"]</label>
    [/conditional]
    
    [conditional condiGTR24]
    <label><strong>GTR Fee (monthly):</strong>
    [text gtr24 class:gtr24 "35€"]</label>
    [/conditional]
    
    
    [submit "Submit"]
    [uacf7_step_end]
    

    And the email tab:

    From: [your-name] [your-email]
    <br><br>
    
    GTR (in hours): [GTRenheure]
    
    GTR Fee (monthly):
    [conditional-condiGTRfree]
    [gtrfree]
    [/conditional-condiGTRfree]
    
    [conditional-condiGTR24]
    [gtr24]
    [/conditional-condiGTR24]
    <br><br>
    

    I receive this in my mailbox :

    From?: Your name ssd@dd.fr
    
    GTR (en heure) : GTR 4H HO (inclus) Redevance GTR (mensuel) : [conditional-condiGTRfree] 0€ [/conditional-condiGTRfree] [conditional-condiGTR24] 35€ [/conditional-condiGTR24]

    If you could help me, this is just an example, but the form I’m creating for my employer is much longer (with many more conditions), and I’ve been working on it for a few days. The only issue left to resolve is this one.

    Thank you!

    Lionel

    • This topic was modified 11 months, 3 weeks ago by lionelipacs.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do conditional fields work? (short code examples)’ is closed to new replies.