How do I open a popup (contact form) from within a table cell?

Hi all,

I’ve created a comparison table using Bricksextras;

I need to open a popup from the package buttons (there will be 5) that will carry over the package details to the form for the user to submit.

The button code (in the wysiwyg editor) I have so far:

<button id="pub_package" class="package_button" type="button">Publishing Plus</button>

I looked at using ‘Interactions’ but that is attached to the parent table element.

Ideas please.

Thanks.

Hey Lee,

you could use some custom JS as described in the academy:

document.querySelectorAll('.package_button').forEach( (el) => {
	el.addEventListener('click', () => {
		bricksOpenPopup(123) // Insert your popup ID here
	})
})

Best,

André