Extra Spaces when using menu items

Hi,

When using multiple menu items within a snippet, if I don't want to use some of the menu options in the output text, how can I prevent my output text having extra spaces when the item is not used.

Example:
image

Will output: 'Choice of Saloons, 4x4's,(3 extra spaces) & SUV's'

I then have to manually delete the extra spaces - can this be set up to prevent the extra spaces for unused menu options?

Many thanks :slight_smile:

Hi Paul! Take a look at this information about whitespace. It really helped me with these types of situations.

Best of luck!

Laren

1 Like

@Paul_Williams — on top of what @Laren_Eggleston suggested, you could also use a toggle command to turn certain sections on/off:

{formtoggle: default=yes}{formmenu: default=Choice A; Choice B; Choice C; Choice D}, {endformtoggle}{formtoggle: default=yes}{formmenu: Choice A; default=Choice B; Choice C; Choice D}, {endformtoggle}{formtoggle: default=yes}{formmenu: Choice A; Choice B; default=Choice C; Choice D}, {endformtoggle}{formtoggle: default=yes}{formmenu: Choice A; Choice B; Choice C; default=Choice D}{endformtoggle}