What are the restrictions associated with assigning a string to a button.link?

From what I can tell you cannot assign a link to a button. The spec implies it has a get and a set. https://www.wix.com/corvid/reference/$w.Button.html#link

but this does not work
$w(‘#submenubtn1’).link = /${roles[i].description}-info;

You can assign a link to a button. It just has to be a valid link. See the Button API for details.

Hello Yisrael,

found it… url is case sensitive. IFF i use https:// external site i can post the link incorrectly and see the I didn’t do a .toLowerCase.

Thanks you again.

1 Like