Link target property

I’d love it if the Link component had a target property that could be used to adjust the behavior of Anvil opening links in new tabs.

My use case is that I have an otherwise static site that uses iframes to embed Anvil forms. With the default behavior of a Link component, putting a link on one of those Anvil forms to a page on my static site opens a new tab. Being able to specify target="_parent" would give the user the results they expect, which is that the page opens in the same tab, replacing the current page.

I’m currently doing that by using a custom HTML form, coding the link myself, and using that form as a component in another form, but it’d be far nicer to be able to just specify the target on the link.

5 Likes