• Resolved supersys

    (@supersys)


    Hi
    I am using conditional logic to show courses available based on selection of online or classroom.

    That works great but I am unable to show the result og the course chosen in my email

    My form code for the group is:
    <!– CHOICES IF ONLINE SELECTED –>

    [group OnlineCourses]
    <div style=”padding-top:20px;”><label>Online Courses (required)</label>
    [select* online-course first_as_label “– Choose your Course –” “RYA Essential Navigation and Seamanship Online Course – £99.00|99.00” “RYA Short Range Certificate VHF/DSC Radio Online Course – £90.00|90.00” “RYA Day Skipper Theory Online Course – £315.00|315.00” “RYA Coastal Skipper/Yachtmaster Theory Online Course – £490.00|490.00” “RYA Professional Practices & Responsibilities Online Course – £45.00|45.00” “RYA CEVNI (European Waterways) Online Course – £40.00|40.00” “RYA Safe & Fun Safeguarding Online Course – £12.00|12.00″]
    </div>
    [/group]

    <!– CHOICES IF ONLINE SELECTED END –>

    <!– CHOICES IF CLASSROOM SELECTED –>

    [group ClassroomCourses]
    <div style=”padding-top:20px;”><label>Classoom Based Courses (required)</label>
    [select* classroom-course first_as_label “– Choose your Course –” “RYA Essential Navigation and Seamanship Classroom Course – £240.00|240.00” “RYA Short Range Certificate VHF/DSC Radio Classroom Course – £120.00|120.00” “RYA Day Skipper Theory Classroom Course – £365.00|365.00” “RYA Coastal Skipper/Yachtmaster Theory Classroom Course- £550.00|550.00” “RYA Radar Classroom Course – £135.00|135.00”]
    </div>
    [/group]

    <!– CHOICES IF CLASSROOM SELECTED END –>

    I am using a pipe symbol in the course name to pass the price to Paypal (ie RYA Radar Classroom Course – £135.00|135.00)
    This works ok but may be complicating things for my email.

    Is there a way round this so I can show the price AND the course in the email

    (hope that all makes sense)
    Thanks
    Malcolm

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

    (@jules-colle)

    Not sure if I completely understand, but this question seems more related to CF7 than to conditional fields?

    There is a way to show both the values before and after the |

    The value before pipe: [_raw_classroom-course] 
    The value after pipe: [classroom-course]

    As you can see here: https://contactform7.com/selectable-recipient-with-pipes/

    Does this answer your question?

    Thread Starter supersys

    (@supersys)

    Hi Jules
    You are quite right – it was a CF7 issue and your solution seems to have solved my problem.

    Would probably never have found the article on using the pipe

    Thank you for you help

    Malcolm

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conditional Logic selection in email’ is closed to new replies.