Skip to main content
Participating Frequently
February 8, 2023
Question

Hyperlinking script

Hi All, 

Wonder if you can help me.

I have a text field, script label"Week" what I want to do is take the value of the text field which is a number and hyperlink this a page called Week-(number of text field)

Can someone help me please! Thank you 

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

m1b
Community Expert
Community Expert
February 8, 2023

Hi @wahid28246070iu4o, but how do want the script to work? What is your scripting knowledge like? I could make a function that takes a textFrame and makes a hyperlink that goes to a page "Week-<contents of text frame>". Are they text frames? Or are they table cells like in your previous question.

- Mark

Translate
Participating Frequently
February 8, 2023

Hi Mark, 

I have a text field with a value in it, what i wanted to do was either click on that text field and run the script so it hyperlinks to page names 'Weekly-(text field number) if that makes sense? 

Translate
Participating Frequently
February 8, 2023

I also have some other text fields where they have data merge values and when I try to run the previous code you provided it doesnt work, do I need to add parethisis to the code or variable??

Translate