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:
How can I do this?
Thx!
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:
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")
}
}()
}}