I have an Edit Post form and when it get submitted, I would like a date field to get updated with the current day/time. I tried to follow the directions in this support post:
(My plan is to visually hide this with CSS, because I don't want the user to manually set the date; instead I want the value for this field to be set when the form is submitted.)
Then, in the JS Editor pane beneath the form, I have this:
But it's not working; when the form is submitted and the post is updated, the date field is not getting set. Can you take a look and let me know where I'm going wrong (screenshot of my code attached).
Hello. Thank you for contacting the Toolset support.
Can you please check if you see any Javascript/jQuery error with your brwoser's console where you added the form?
Can you please share problem URL where you added the form as well as admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.