{note}
{formmenu: name=singlechoice; Item 1; Item 2; other}
{if: singlechoice=="other"}{formtext: name=other; default=other}
{endif}
{endnote: trim=right}
{=replace(singlechoice, "other", other)}
{note}
{formmenu: name=multiplechoice; Item 1; Item 2; other; multiple=yes}
{if: contains(multiplechoice, "other")}{formtext: name=other; default=other}
{endif}
{endnote: trim=right}
{=join(replace(multiplechoice, "other", other), ", ")}