• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Adding links to dynamic text with javascript

Community Beginner ,
Nov 16, 2021 Nov 16, 2021

Copy link to clipboard

Copied

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!

Views

96

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 17, 2021 Nov 17, 2021

Copy link to clipboard

Copied

LATEST

 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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines