Good Afternoon,
I have tried to understand how to get the stored procedure to run on submission of the form. It is still running on page load. Since I don't understand but the very very basics of using Javascript I can not figure out what I am doing wrong. Here is the information I gathered from other post. Can someone look it over and do a couple of things for me so I can learn. Would you fix any of my errors and comment the lines so I understand the actions they are taking?
I know it is not your job to teach me but I am trying to learn so I can do these myself.
Thanks for all your help with this.
Here is the version of Forms I am using. 10.4.0.1256
$('.action-btn').on('click', function(event) { if (requiredfilled() && $('.notused input').val() === "") //This is the stored proc trigger { $('.notused input').val("1").trigger('change');//This is the stored proc value to trigger the procedure event.preventDefault(); waitfunction(); } }); function requiredfilled() { return _.every($('li:has(.cf-required):visible input,li:has(.cf-required):visible textarea'), function(elm) {return $(elm).val() != '';}); } function fieldfilled() { return ($('#q164 input').val() != ''); } function waitfunction() { setTimeout(function(){ if(fieldfilled()) $(".Submit").click(); else waitfunction(); }, 500); }