A client would like to have an alert pop-up when clicking the submit button as a reminder to upload certain attachments if they are needed. If they choose to upload or choose to proceed the second time they click the submit button the form will submit and no message will display. I have this as the start of my code:
$('.Submit').on('click', function() { var checkboxController = $('.control input').val(); if (checkboxController == "") { alert("Are Photos or JHA/EHA Form Uploaded?"); } });
And here is the section of the form, specifically the id=q74.
If they check the boxes and then click submit, the message would not need to come up, and if they receive the message the firs time and do not check any boxes, the form would need to submit and not show another message on the second click.
This is a strange request and I'm not sure if it would be possible, any help is appreciated. Thank you!