I want to customize the string above the toggle fields based on whether we select one or multiple calendly links. If we select more than one of the toggle fields, I want to word it differently so the customer knows they should schedule only one appointment in whichever of the following calendars they can find a time that works for them.
I am stuck on how to craft an if statement that takes the list of toggle field names, everything I try tells me it can't count or compare "yes". I am not able to make the leap from the formtoggle evaluating as "no" or "yes" to counting whether the sum of list of them all is >1
You may schedule a time that works for you using the following:
{formtoggle: name=Harry; default=no}https://calendly.com/harrypotter{endformtoggle}
{formtoggle: name=Ron; default=no}https://calendly.com/ronweasley{endformtoggle}
{formtoggle: name=Hermoine; default=no}https://calendly.com/hermoinegranger{endformtoggle}
{=harry}
{=ron}
{=hermoine}
example: {if: count([harry,ron,hermoine])}one{else}two{endif}
results in " Cannot convert "3" to yes or no."
We prefer toggle fields because vs a dropdown menu it doesn't require extra clicks to pull down the dropdown, but I can't get it to work with a dropdown instead either. I'm just stuck, can anyone help please?