Copy link to clipboard
Copied
A submit will be blocked when a field is both required and set to it's default value. So make "Please Select" the default. I don't see any need for the script.
Copy link to clipboard
Copied
You can make custom script to validate fields you wish to check if they have been filled, and put script on your 'Save' button. But what if users doesn't use the button to save? You could also put script in document action 'Will save' it will alert user if there are fields they need to fill when they try to save normal way, but it will not stop them to save file.
Copy link to clipboard
Copied
so would you suggest adding it to both, or will that create an error state?
Copy link to clipboard
Copied
The script above does not work on either save option. What am I missing?
Copy link to clipboard
Copied
You CANNOT stop the user saving a file. The idea of "required" applies only to "real" submit actions. This is vital - what if the user has to go home or deal with an emergency half way through the form - they must be free to save it and return to their work later. Start by accepting this point (that you cannot stop a save), and seeing that your options are very limited.
Copy link to clipboard
Copied
So basically, unless we go back to emailing it or create a single upload url, submit is pointless? Each user has their own folder in Basecamp and each "Company" has their own Basecamp site. Basecamp is similar to Asana, in case you were wondering. We used to do these forms every month on paper and hand it in. I'm not sure who would even process all of the forms if we e-mailed them and we have a definite change of command and users all over the country. If you have any suggestions I'm open to them. I would like to use required fields, but its not the end of the world if I can't.
Copy link to clipboard
Copied
I agree required fields are useless to you if you want to work this way. But I take issue with a small point "So basically, unless we go back to emailing it or create a single upload url, submit is pointless?" The problem is you have decided not to submit AT ALL but do something different (probably saving), which you can call "submit" but in PDF terms is not.
Copy link to clipboard
Copied
You answered that question. I want to do a real submit, but that is out of my control as the organization has chosen for us to save the completed form and upload it to our folder in Basecamp. Thanks for the confirmation though.
Copy link to clipboard
Copied
One thing you can do, though, is display a large field saying "INCOMPLETE FORM" somewhere on the page when the file is saved, unless all the required fields have been filled-in. This can be achieved using a script that will execute on the document's Will Save event. That will make it easier to spot such files, and possibly reject them.