Don't ask for confirmation to close the form

Questions related to customising nuBuilder Forte with Javascript or PHP.

Don't ask for confirmation to close the form

Postby kknm » Tue Oct 13, 2020 5:39 pm

The form contains a calendar for selecting the date of the report. Each time before closing the form, it asks if the selected date should be saved, but this is not necessary.
How to suppress the question?
kknm
 
Posts: 154
Joined: Sat Apr 11, 2020 7:33 am

Re: Don't ask for confirmation to close the form

Postby kev1n » Tue Oct 13, 2020 5:43 pm

Hi,

Add an onchange event to the date field with the Javascript

Code: Select all
nuHasNotBeenEdited();
Attachments
2020-10-13_100907.png
2020-10-13_100907.png (12.99 KiB) Viewed 32 times
kev1n
 
Posts: 1038
Joined: Mon Oct 15, 2018 2:13 am

Re: Don't ask for confirmation to close the form

Postby kknm » Tue Oct 13, 2020 6:27 pm

kev1n wrote:Hi,

Add an onchange event to the date field with the Javascript

Code: Select all
nuHasNotBeenEdited();

Thanks !
kknm
 
Posts: 154
Joined: Sat Apr 11, 2020 7:33 am


Return to Custom Code