How can I use links in formmenus?


I want to use links in formmenus, but it doesn't work:

{formmenu: name=TV producer:; {link:} Panasonic {endlink}; {link:} Sony {endlink}; multiple=no}

I also tested:

{link: {=producer}} {formmenu: name=producer;;; multiple=no} {endlink}

What can I do to make it work?

Hi @kamuro

The formmenu command doesn't accept commands, but you could combine it with an if command to achieve what you want:

{formmenu: name=options; option 1; option 2; option 3}
{if: options=="option 1"}insert link 1{elseif: options=="option 2"}insert link 2{elseif: options=="option 3"}insert link 3{endif}

Thank you Cedric_Debono_Blaze,

that's a very good idea! It works fine, but now i have the selection from the formmenu in addition to the result from the if-command in my Website:

Option 1

Is it possible to hide the selection from the formmenu in the result?

@kamuro, yes, you can hide the formmenu inside a note command:

{note}the formmenu command

{endnote: trim=right}

The if command

Perfect! Thank you very much.

You can also use it to import snippets based on your choice :slight_smile:

Thats a nice idea. I will think about what else I can optimize with it. Text Blaze is a very excellent tool.

1 Like

If you want you can tell me a bit more about what you want to achieve (and your use case) and I could help you develop some snippets.