I have created a snippet but I am having trouble with the formatting for the user.
Thanks for raising a ticket through the self service portal.
{formtoggle: name=Did you call?}{endformtoggle}
{if: `Did you call?` == "yes"}We have tried to phone you and {formmenu: have left a voicemail; default=have been unable to get through; have left a message with a store colleague} regarding this incident.{endif}
Based on your detailed description we need some more information about your {formmenu: default=Hardware; Software; name=steps} issue.
If the "Did you call?" toggle is off it will leave a gap in the inserted text
Adding the trim to the commands doesn't format the popup as nicely as this:
Any ideas how I can keep it looking nice but without the gap?
Hi @OllieJS ,
You can add contents inside {formtoggle} directly and avoid {if}. This should resolve the white space too. Please let me know if this works
Thanks for raising a ticket through the self service portal.
{formtoggle: name=Did you call?}We have tried to phone you and {formmenu: have left a voicemail; default=have been unable to get through; have left a message with a store colleague} regarding this incident.{endformtoggle}
Based on your detailed description we need some more information about your {formmenu: default=Hardware; Software; name=steps} issue.
Thanks for raising a ticket through the self service portal.
{formtoggle: name=Did you call?}We have tried to phone you and {formmenu: have left a voicemail; default=have been unable to get through; have left a message with a store colleague} regarding this incident.{endformtoggle}{note}
{endnote}Based on your detailed description we need some more information about your {formmenu: default=Hardware; Software; name=steps} issue.
If not, please provide expected screenshots for both Did you call? turned on and turned off.
Thanks for raising a ticket through the self service portal.{note}
{endnote}{formtoggle: name=Did you call?}
We have tried to phone you and {formmenu: have left a voicemail; default=have been unable to get through; have left a message with a store colleague} regarding this incident.{endformtoggle}
Based on your detailed description we need some more information about your {formmenu: default=Hardware; Software; name=steps} issue.
I believe this is what you want!
Used {note} for a new line so you can have better way while filling form.
Inserting second line with new lines only when needed.
Hi! I believe you were close in your original snippet, but I did a small edit (also removed endtoggle as it's not needed for this, and edited the toggle name due to error).
Thanks for raising a ticket through the self service portal.
{formtoggle: name=Did}{if: did == "yes"}
We have tried to phone you and {formmenu: have left a voicemail; default=have been unable to get through; have left a message with a store colleague} regarding this incident.
{endif}
Based on your detailed description we need some more information about your {formmenu: default=Hardware; Software; name=steps} issue.
Did you see Vinod's most recent response? I believe he solved the issue with this snippet:
Thanks for raising a ticket through the self service portal.{note}
{endnote}{formtoggle: name=Did you call?}
We have tried to phone you and {formmenu: have left a voicemail; default=have been unable to get through; have left a message with a store colleague} regarding this incident.{endformtoggle}
Based on your detailed description we need some more information about your {formmenu: default=Hardware; Software; name=steps} issue.
If the toggle field is not selected, there is only 1 line of space between the first and last items. If it is selected, there is 1 line between each of the three.
Please let us know if that's what you're looking for.