Hyperlink on field text
Posted: Tue May 01, 2007 3:59 pm
How can I put a hyperlink in a text field? Is it possible?
Thanks.
Thanks.
Questions and answers about the LiveCode platform.
https://forums.livecode.com/
Simply select the text you want to make into a link, then go to the top menu > Text > Link. Alternatively, edit set the htmltext of the field to something that contains a <a>http://mywebsite.com/</a> part.lbtony wrote:How can I put a hyperlink in a text field? Is it possible?
Code: Select all
on linkclicked pText
revGoURL pText
end linkclicked
Code: Select all
on linkclicked pText
switch pText
case "myWebsite"
put "http://www.mywebsite.com/" into tURL
break
case "google"
put "http://www.google.com/" into tURL
break
default
-- the link doesn't correspond to any predifined label.
-- either put pText into tURL, either issue a debug message to
-- the programmer
end switch
revGoURL tURL
end linkclicked