External Links When Button Pressed

I am looking to create a function for when a user clicks on a button, it takes them to an external website. Doesn’t really matter to me if it opens a new window or adds a new tab. Tried looking through the forum, but couldn’t find anything that worked. Any help would be appreciated. Thanks

Also, is it possible to assign the link in a data table, so that I can use these in a repeating panel?

Can you not use a link and set the url property?

If you absolutely need a button, the forum has the answer: Making a Button click run a JavaScript snippet -OR- Open a new Tab and navigate to a URL - #2 by jshaffstall

1 Like