We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53372
    • 4 Posts
    I have a TV that allows a user to input some text to describe an event and allows them to choose a button that links to either a classes page, a trails page or an events page. The TV for the button: "inputOptionValues":"classes page==17||trails page==23||events page==25". Therefore the "More Info" button gets a person to the correct page but everybutton is labelled the same i.e."More Info".

    So , the button currently is labelled "More Info" as hardcoded in the html, but how would I allow the user to choose the button label so that the button would say "Classes Page", "Trials Page" or "Events Page" instead?

    I suspect I'll be writing a snippet but thought to ask before I ventured too far. Thanks in advance for any help.

      • 17301
      • 932 Posts
      You may be able to do it using an output modifier such as:

      <a href="[[+link]]">[[+link:is=`[[~17]]`:then=`Classes Page`:is=`[[~23]]`:then=`Trials Page`:is=`[[~25]]`:then=`Events Page`]]</a>


      But a snippet would be best.
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 53372
        • 4 Posts
        Thanks so much but does seem that I will need to write a snippet. It isn't quite working. If I find a solution I will post it. Thanks for the help.
          • 53372
          • 4 Posts

          Just to update:
          I played around with your code LK and found the following works with the exception of the last button name "Trials".

          [[+id:is=`17`:then=` classes `:else=` [[ +id:is=`23`:then=` trials `:else=` [[ +id:is=`24`:then=` events `]]`]]`]]

          The Events button is left blank. The buttons for Classes and Trails are both labelled correctly. So close, yet so far. Anyone have any ideas what I may be doing wrong? Then I will give this a rest and move on. Thanks.

            • 17301
            • 932 Posts
            You're really best off writing a snippet to be honest but if you want a quick dirty fix then you could use this:

            [[+id:is=`17`:then=`Classes`:else=``]]
            [[+id:is=`23`:then=`Trials`:else=``]]
            [[+id:is=`24`:then=`Events`:else=``]]
              ■ email: [email protected] | ■ website: https://alienbuild.uk

              The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
              • 53372
              • 4 Posts
              Thanks LK. For the record your solution worked. And I agree, quick and dirty so time permitting I will write that snippet. But thanks so much for the interm solution as it bought me some time.