How to display value in mail
-
Hi
I am using conditional logic to choose Online Course or Classroom Course. Selecting one of the options shows a drop down of the courses available. Selecting a course then displays the price.
This seems to be working fine.
The problem is showing the price in the mail.The form code is:
<!– COURSES –><!– TYPE OF COURSE –>
<div style=”padding-top:20px;”><label>Type Of Course (required)[select* course-type first_as_label “– Choose your Type of Course –” “Online Course” “Classroom Based Course”]</label></div>
<!– TYPE OF COURSE END –>
<!– 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” “RYA Short Range Certificate VHF/DSC Radio Online Course” “RYA Day Skipper Theory Online Course” “RYA Coastal Skipper/Yachtmaster Theory Online Course” “RYA Professional Practices & Responsibilities Online Course” “RYA CEVNI (European Waterways) Online Course” “RYA Safe & Fun Safeguarding Online Course”]
</div>
[/group]<!– CHOICES IF ONLINE SELECTED END –>
<!– PRICES FOR ONLINE COURSE SELECTED –>
[group OnlinePrice]
[group RYAEssentialNavigationandSeamanshipOnlineCourse-selected]<div style=”padding-top:20px;”><label>Payment Amount (GBP £)</label></div><div class=”fullwidth-panel”>[text RYAEssentialNavigationandSeamanshipOnlineCourse-cost id:no-inner-border readonly "99"]</div>[/group]
[group RYAShortRangeCertificateVHFDSCRadioOnlineCourse-selected]<div style=”padding-top:20px;”><label>Payment Amount (GBP £)</label></div><div class=”fullwidth-panel”>[text RYAShortRangeCertificateVHFDSCRadioOnlineCourse-cost id:no-inner-border readonly "90"]</div>[/group]
[group RYADaySkipperTheoryOnlineCourse-selected]<div style=”padding-top:20px;”><label>Payment Amount (GBP £)</label></div><div class=”fullwidth-panel”>[text RYADaySkipperTheoryOnlineCourse-cost id:no-inner-border readonly "315"]</div>[/group]
[group RYACoastalSkipperYachtmasterTheoryOnlineCourse-selected]<div style=”padding-top:20px;”><label>Payment Amount (GBP £)</label></div><div class=”fullwidth-panel”>[text RYACoastalSkipperYachtmasterTheoryOnlineCourse-cost id:no-inner-border readonly "490"]</div>[/group]
[group RYAProfessionalPracticesResponsibilitiesOnlineCourse-selected]<div style=”padding-top:20px;”><label>Payment Amount (GBP £)</label></div><div class=”fullwidth-panel”>[text RYAProfessionalPracticesResponsibilitiesOnlineCourse-cost id:no-inner-border readonly "45"]</div>[/group]
[group RYACEVNIEuropeanWaterwaysOnlineCourse-selected]<div style=”padding-top:20px;”><label>Payment Amount (GBP £)</label></div><div class=”fullwidth-panel”>[text RYACEVNIEuropeanWaterwaysOnlineCourse-cost id:no-inner-border readonly "40"]</div>[/group]
[group RYASafeFunSafeguardingOnlineCoursesOnlineCourse-selected]<div style=”padding-top:20px;”><label>Payment Amount (GBP £)</label></div><div class=”fullwidth-panel”>[text RYASafeFunSafeguardingOnlineCoursesOnlineCourse-cost id:no-inner-border readonly "12"]</div>[/group]
[/group]<!– PRICES FOR ONLINE COURSE 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” “RYA Short Range Certificate VHF/DSC Radio Classroom Course” “RYA Day Skipper Theory Classroom Course” “RYA Coastal Skipper/Yachtmaster Theory Classroom Course” “RYA Radar Classroom Course”]
</div>
[/group]<!– CHOICES IF CLASSROOM SELECTED END –>
<!– PRICES FOR CLASSROOM COURSE SELECTED –>
[group ClassroomPrice]
[group RYAEssentialNavigationandSeamanshipClassroomCourse-selected]<div style=”padding-top:20px;”><label>Payment Amount (GBP £)</label></div><div class=”fullwidth-panel”>[text RYAEssentialNavigationandSeamanshipClassroomCourse-cost id:no-inner-border readonly "240"]</div>[/group]
[group RYAShortRangeCertificateVHFDSCRadioClassroomCourse-selected]<div style=”padding-top:20px;”><label>Payment Amount (GBP £)</label></div><div class=”fullwidth-panel”>[text RYAShortRangeCertificateVHFDSCRadioClassroomCourse-cost id:no-inner-border readonly "120"]</div>[/group]
[group RYADaySkipperTheoryClassroomCourse-selected]<div style=”padding-top:20px;”><label>Payment Amount (GBP £)</label></div><div class=”fullwidth-panel”>[text RYADaySkipperTheoryClassroomCourse-cost id:no-inner-border readonly "365"]</div>[/group]
[group RYACoastalSkipperYachtmasterTheoryClassroomCourse-selected]<div style=”padding-top:20px;”><label>Payment Amount (GBP £)</label></div><div class=”fullwidth-panel”>[text RYACoastalSkipperYachtmasterTheoryClassroomCourse-cost id:no-inner-border readonly "550"]</div>[/group]
[group RYARadarClassroomCourse-selected]<div style=”padding-top:20px;”><label>Payment Amount (GBP £)</label></div><div class=”fullwidth-panel”>[text RYARadarClassroomCourse-cost id:no-inner-border readonly "135"]</div>[/group]
[/group]<!– PRICES FOR CLASSROOM COURSE SELECTED END –>
<!– COURSES END –>
The email code is (note- I have left the Payment Amount empty of mail-tag as Nothing I use seems to give the correct result):
The following person has provided information in request for a Course/Charter BookingFull Name: [full-name]
Email Address: [email]
Address: [house-number] [street]
[town]
[city]
[county]
[postcode]Telephone: [telephone]
Course: [online-course][classroom-course]
Payment Amount: £
Date of Birth: [_format_date-of-birth “d M Y”]
Sailing Experience: [experience]
Where did you hear about us?: [refer-from]
Additional Information: [additional-info]
[accept-tc]
Since I am learning to use this plugin from scratch, I think the problem may be in my form code but unsure where
Any help/advice would be appreciated
Thanks
MalcolmThe page I need help with: [log in to see the link]
- The topic ‘How to display value in mail’ is closed to new replies.