Table select a row and open a Modal, open a different Modal on row 2

Hi,

I have a Table and I want to open 2 different Modals. One Modal if I click on row 1 and a second, different Modal if I click on row 2:

image

How can I do this?

Thx!

Hey @isa.grafit, you can use the showModal("modal-name-goes-here") in the button’s onClick property based on a condition to display different modals.

For example, I have two modals, Modal1 and Modal2, based on the data in the columns, I wrote an if-else condition to display Modals in the columns settings.

Here’s the code snippet:

{{
function(){
	if (Table1.triggeredRow.status=== "Modal1"){
		showModal("Modal1")
	}
	else{
		showModal("Modal2")
	}
	
}()
}}
1 Like