I’m a newbie. I want to create two buttons in _form.php. The two buttons are “‘0’=>approve” and “‘1’=>Reject”. Now, I have a text field for date. I need to update it with current date when approve is clicked and null when reject is clicked. How can I do this.
var today = new Date();
No Date gets updated for reject also and not showing null.
plz attach your _form.php