0

Confirm box when new record

Any way to implement this code 

let check := dialog("Add record", "New record will be added. Continue?", ["Sí", "No"]);
if check = "Sí" then

for a new record adding? When click on the "+" to add record or "on create", warning box shows to avoid incorrect additions.

Thanks

6 replies

null
    • Nick
    • 6 yrs ago
    • Reported - view

    This code works for me, if it helps:

    let check := dialog("Add record", "New record will be added. Continue?", ["Yes", "No"]);
    if check = "Yes" then create 'YourTable' else void end

     

    Nick

    • mdomfu
    • 6 yrs ago
    • Reported - view

    Not working for me. Where you put the code? I put it on "on create"

    • mdomfu
    • 6 yrs ago
    • Reported - view

    Using a button it works, but if click on the "+" it adds the record, no warning

    • robertdebruyn
    • 6 yrs ago
    • Reported - view

    Eso no se puede elimar. Al menos hasta ahora.

    • mdomfu
    • 6 yrs ago
    • Reported - view

    tan solo en botón se puede entonces?

    • Nick
    • 6 yrs ago
    • Reported - view

    Yes, I meant the button works. For a trigger i can't figure it out.

Content aside

  • 6 yrs agoLast active
  • 6Replies
  • 2155Views