Skip to main content
Known Participant
November 17, 2021
Question

Adding links to dynamic text with javascript

  • November 17, 2021
  • 1 reply
  • 152 views

Hi, I'm building a simple menu from an XML file, and I'd like to add links to the menu items.  

Something like:

root.menu_txt.text = "flowers";
root.menu_txt.link = "http://www.flowers.com";

I didn't find anything with my Google search; I'm hoping the community can help me out!

    This topic has been closed for replies.

    1 reply

    JoãoCésar17023019
    Community Expert
    Community Expert
    November 17, 2021

     Hi.

     

    Dynamic texts fields created with the Text Tool (T) are canvas based and don't have a link feature.

     

    Two solutions would be to simulate a link behavior by using the regular button approach or to use a Label component (Window > Components > User Interface > Label) which is a regular DOM text field.

     

    I hope it helps.

     

    Regards,

    JC