Problem:
I need to quickly enter dates into cred forms. with the date picker it takes some time to get the date updated.
Is there a way to change the date picker input which is used by the cred form?
Solution:
The custom date field created with Types plugin will store value in timestamp format, I don't think your users can input the timestamp value quickly.
As a workaround, you can create another single line field for user inputting value in date format, after user submit the form, use action hook cred_save_data to trigger a PHP function, for example:
Relevant Documentation:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data
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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Hong_Kong (GMT+08:00)
This topic contains 6 replies, has 2 voices.
Last updated by 5 years, 3 months ago.
Assisted by: Luo Yang.