Disable/hide the Save button after click on the button

This public forum is for user-to-user discussions of ASPMaker. Note that this is not support forum.

Disable/hide the Save button after click on the button

Postby ashraf4 » Sat Nov 04, 2017 5:59 pm

On the edit page, is there a way to disable/hide the Save button after click on the button until uploading big size files into the record?
ashraf4
 
Posts: 11
Joined: Mon Mar 17, 2014 4:11 pm

Re: Disable/hide the Save button after click on the button

Postby Webmaster » Sun Nov 05, 2017 9:47 am

To disable the save button you can use Startup Script (see Server Events and Client Scripts in the help file), e.g. (v2018)

CurrentForm.DisableForm();

To enable the save button you can call:

CurrentForm.EnableForm();

To detect uploading you can use jQuery File Upload's events, read:
https://github.com/blueimp/jQuery-File- ... ki/Options (See "Callback Options")
Webmaster
 
Posts: 10734
Joined: Fri Aug 06, 2004 5:59 pm

Re: Disable/hide the Save button after click on the button

Postby ashraf4 » Sun Nov 05, 2017 2:23 pm

Thnaks , but your solution is not clear for me

Just I need to click on Save button in order to upload the files
and then during uploading the big size file the Save button should be disable

Once the file is uploaded , the save button should be shown again

The problem is my form is sending email on edit and the user click many times in save button during uploading the big size file and many emails have been sent accordingly
ashraf4
 
Posts: 11
Joined: Mon Mar 17, 2014 4:11 pm


Return to General Discussion (ASPMaker)