I have an evaluation form where the user has to acknowledge that they have reviewed the form, then the system populates the subsequent name and date fields with the current user and today's date, respectively (Actually, the default value of the date field is captures on Form submission, which is what I want, but you get the idea).
Here's a visual:
The problem I have is that there is still one last chance for the document to be returned to an earlier state after this if some kind of error or problem is discovered. Once the Confirmation Date, in particular, is set, I can't get it out! So if the document gets returned for correction, when it gets back to this state, the Confirmation Date field is already populated with the old date, when it needs to revert back to it's original setting of capturing the date upon form submission, or at LEAST being reset with the date that the Form was loaded.
This is the javascript snippet I'm using that's triggered when the "Reject" button is clicked later:
// Un-check the confirmation checkbox $('#Field323-0').attr('checked',false); $('#Field323-0').change(); $('#Field328 input').val('').change(); $('#Field333 input').val('').change();
The first two lines un-check the confirmation checkbox, then trigger the change so it gets saved. That works fine. The next two lines are where I have trouble. I've tried without the Change, using "" instead of '', removing the "value" attribute entirely, using q333, or 'Field333' without the '#' character, using JS to reset the value to today's date manually... nothing is touching these values!!!
Can someone please help me see what I'm doing wrong?
Thanks in advance