I have a form that goes through multiple people for authorization. I have a radio button field that is required before the submit button appears. Below is the button field. The purpose is to be a reminder to check all info is complete.
When "Yes" is selected, the submit button appears. Here is my code to make the Submit button appear...
$(document).ready(function() { var $submit = $('.Submit'); $submit.hide(); $('.verification input').on('change',function() { if ($(this).val() =='Yes') { $submit.show(); } else { $submit.hide(); } }); });
This is working with the first person, but it does not for the second person. The information remains in the second submission from the first user, and the submit button does not appear for the second person. Ideally, I would like the information to clear either upon submission of the first form, or be triggered to clear by a user change.
I tried coding the form to clear the field by adding this code...
$(document).ready(function(){ setTimeout(function(){ $(".verification input").prop('checked', false); $('.verification input').val(''); }, 4000); });
It works to clear the field information, but it no longer triggers the submit button to appear when the second user enters "Yes".
Does anyone have any solutions/ideas?