I need to add a button to a form that will populate a Approved By field with the Current User's Preferred Name, and a Approved On field with the Current Date. For simplicity I made both Approved By and Approved On fields single line of text fields.
NWF$('#' + idApprovedBy).val("Current User Name here");
NWF$('#' + idApprovedOn).val(fn-FormatDate(Current Date, 'MM/dd/yyyy'));
Does anyone have any ideas on how to make this work? Thanks.