Expand my Community achievements bar.

crating a hyper-link

Avatar

Level 2

Hi All,

I need to create a hyperlink on a object(textfield), and on click of it need to hide or visible another object.

Please help how to create a hyperlink?

Thanks,

Abhijit.

1 Reply

Avatar

Level 6

Short storey....No Hyperlink object in LC. However any text with prefix http:// or https:// is turned into a web link URL at run time. That means Hyperlink can not act as a toggle button to make other objects visible or invisible as it it has no events defined in the Hierarchy structure.

Instead you can do this on a button click or checkbox selection by setting "presence" property of objects that you want to set to visible or invisible...JS code.....

if (<>.textField1.presence == "visible") {

     <>.textField1.presence = "invisible";

}else {

     <>.textField1.presence = "visible";

}

Good Luck,