This support ticket is created 6 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I've make a form to create post named Request a quote. The form has a single-line field that I named is 'Quote Status'. When customer filled the form, the 'Quote Status' is 'Pending'. When they accept the quote, the form will update and the 'Quote Status' is 'Accept'. But if the didn't accept (submit) the form until 'Date Time Expired' reached, the 'Quote Status' will automatically changed to 'Cancelled'. The 'request1.PNG' is a form to create a quote.
So, how to change the 'Quote Status' to 'Cancelled' when reach the 'Date Time Expired'?
With CRED Forms you can add automatic post expiration, so, for example, you could publish a post with a CRED form and set it to automatically expire after 30 days.
Typically you might change the post status to draft upon expiry, but in your case you would leave the post status unchanged and use the CRED API filter cred_post_expiration_custom_actions to add a PHP snippet that updated your Quote Status custom field to Cancelled.
That's not what I want.... The 'Quote Status' is a custom field from CRED.... so, What I want is, when the 'Date Time Expired' are same with date time now, it will update data of 'Quote Status' from 'Pending' to 'Cancelled'... not use wordpress post status... It's any method to do that?
You don't have to change the post status, as I said above you would leave the post status unchanged and use the cred_post_expiration_custom_actions API hook to run some custom code that would change your Quote Status custom field as required.
For this to be possible the first requirement is that you can set up the form to trigger this happening after a fixed interval, e.g. 30 days.
I don't know how your Date Time Expired field is generated, but I guess it is also after a fixed interval from when the form is rendered, rather than being a user selected date.