I have a public form that has some script logic that triggers when the form is submitted (making a read-only field not read-only, so that the value gets saved properly). I have used this successfully on numerous forms, and it's sometimes successful with this one.
I have narrowed it down to this form being public and the person submitting the form not being logged in. In that case, the below 'on submit' logic fails to trigger. If I log in, then it works.
Anybody have any ideas on how to get this to fire off for public users that are not logged in?
The script looks like this (and yes, it's inside of document.ready):
//on submit, remove read-only $('#form1').on('submit', function (event) { //make sure there are no errors, like empty required fields if($('.ws-invalid').length == 0){ $('#q108 select').removeAttr('disabled'); event.submit(); } });//end submit function