ATTACH FILE BUTTON REQUIRED FIELD
Hello everyone. I have created a pdf form, and i needed a button for the user to attach files to it (it is an application form). Got the javascript for it and it works fine BUT you can click and upload as many files you want (i wish i could limit the button to 1 attached file) and i can't get the field to be required. As it is an application form, i need all fields to be required, including the attach your file field. In short: i need a button that attaches the person's file (like hers/his resume for example) and also be a required field, meaning, if there is no attachment, the form can not be sent. Anyone with an idea to help me? This is what I have been trying for the last four hours and got nowhere:
1- tried to create a text button that can be set as required, but even though the script works, form doesnt understand that the button doesnt need to be filled with text, so it blocks the form to be sent because it understands it is an empty field.
2- tried to create a required field checkbox and link it with the field so when file is attached, checkbox is filled and ready to go - no success... maybe this could be a way but i have no idea how to execute it the proper way
3- tried to use the regular button like it is supposed to be and add a script for making it required but couldnt find a script that works...
Don't know what else to do... so please... help!!