Forum Replies Created

Viewing 1 replies (of 1 total)
  • I don’t know if this will help anyone who (like me) has been struggling for hours to get the IF function in emails to perform based on Radio Button check / uncheck button status / values.

    I have a facility booking page where to select a Morning booking, I have a radio button with the ID morningall; the unchecked value of morningall is 0 (zero), and the checked value is 15.

    First off I have had to create a non-visible output element morningallfmt – whose value was morningall – because no amount of experimenting allowed me to get anything working by coding IF(morningall=15, “This is booked”,”This is not booked”) to function.

    To my annoyance, coding IF(morningallfmt=15, etc etc did not work either.

    My breakthough (I think, because it works..) was to resort to sticking the IF expression within parentheses (…) placed within a double curly {{……}} place holder, so that the code is

    {{(IF(morningallfmt=15, “This is booked”, “This is not booked”))}}

    – and result! Works fine!

    You really have to keep a clear head about which () parentheses are ENCLOSING the expression, and which are PART of the expresion

    Hope this helps a few people, and Igor, if you’re watching and have a shorter way to get here (like did I miss something obvious in the Functions Reference?) – I’ll be very interested!

Viewing 1 replies (of 1 total)