Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

User confirmation before save data after cohereny check Topic is solved

Questions related to using nuBuilder Forte.
Post Reply
damien
Posts: 30
Joined: Fri May 06, 2022 10:38 pm
Has thanked: 14 times

User confirmation before save data after cohereny check

Unread post by damien »

Hello,

I would like to perform some coherency check before saving a form.
I code some control in Javascript into the nuBeforeSave function of the edit.
If I found errors it returns false and display the reason in nuMessage().
I works fine.

But in my use case I would like to allow the user to save an incoherent form if he wants.
I would like to warn the user that there is an non coherency but let him chose to save or to correct.

I have add a checkbox into the form (not linked to the database) that the user can check to force saving.

Is it the best solution ?
I do not found some "message box" function to ask the user.

Thanks,
Damien
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: User confirmation before save data after cohereny check

Unread post by kev1n »

Hi,

Use the confirm() function.
damien
Posts: 30
Joined: Fri May 06, 2022 10:38 pm
Has thanked: 14 times

Re: User confirmation before save data after cohereny check

Unread post by damien »

Waw, Excellent so easy !
Thanks :hi:
Post Reply