Open modal with inline <a> tag link

Hi There,

I have an <a> tag link that I would like to open a modal, is this possible?

Specifically, in a text element, I have a line like this:
<a href="example">Conditions of Use</a>

That when clicked I would like to open this Modal located in my footer.
image

Thanks

@el3ctrofuzz - this is absolutely possible! Just add a modal element somewhere on your page, and then under “Customize” (on the modal) just set your hash under Toggle Hash:
image
Then just link the <a> to #toggleHash like: <a href="#toggleHash">Toggle Modal</a>

You can even hide the toggle with some sort of CSS like this: .classOnParentElement .x-anchor-toggle {display:none} in case you want the modal but not the toggle.

1 Like

Hey @el3ctrofuzz,

Thanks for writing in! The solution given by @Foundation is absolutely correct. You should be able to accomplish what you want to do using the method. You can. even use a Button element to trigger to open the modal too.

@Foundation; Thanks for chiming in! We really appreciate it.

Best Regards.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.