Dialog function when creating a new record
Ninox Profile

Good morning, everyone,

How to integrate this function when creating a new record:

let result := dialog("Alerte avant céation ORT", "Offre déjà existante?", ["Oui", "Non"]);
if result = "Oui" then
openTable("Offres clients", "En Suspens")

with a button it works fine but nothing happens when I integrate it into the trigger on creat function

thank you in advance for your help

Ninox Profile

You are correct... the dialog function will NOT fire from the trigger.   I recall in some other thread Ninox saying this was by design to mitigate some other issues. 

Ninox Profile



Ninox Profile

thank you for your help, so if I currently understand well no possibility to do what I wanted, I will look for another solution thank you!


You need to create a new records with a button. Just finishing your formula with the function createRecord()

Ninox Profile

Dialogs (and Alerts) will not work an onChange Triggers - only on Bottons.