On form submit, I want to check the value of one field in a custom post type and update another field's value on the same post with a different value, depending on what that value of the checked field is.
For example, on form submit, if "request type" value is "PTO", I want to set the value of "status" to "Department Head Approved" but if "request type" is any other value, I want to set "status" to "Approved" - using PHP.
What is the link to your site?
I can provide link and credentials in a private response if needed.
Unfortunately, the check on the 'type-of-request' field is never found to be true, even when the value is equal to 'PTO' in the post. I'm sure this is some stupid little syntax detail i'm overlooking, but I don't know what it is. Any help is appreciated.
Hello. Thank you for contacting the Toolset support.
Can you please share problem URL where you added the form and where you created the field "_wpcf_type_of_request"?
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) 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.