CRED is a WordPress plugin that lets you easily build front-end forms for creating and editing content and users.
CRED User Guides include detailed documentation on creating forms, including related fields that belong to the content or the users, validating the input and displaying the forms with custom HTML styling.
When you ask for help or report issues, make sure to tell us the versions of the Toolset plugins that you have installed and activated.
Viewing 15 topics - 556 through 570 (of 628 total)
Problem: I have two address fields, one in a parent post type and one in a child post type. When a new child post is created, I would like to calculate the distance between the two addresses and save that distance in another custom field in the child post type.
Solution: You can use the cred_submit_complete hook to trigger custom code with the shortcode toolset-maps-distance-value to calculate the distance between two addresses. Use the update_post_meta function to store that distance in another custom field.
Problem:
Post expiration date in form doesn't work anymore -set post expiration time using generic custom date field
Solution:
Toolset forms saves the post expiration time to postmeta table with the key "_cred_post_expiration_time". To override the value of post expiration time based on the custom date field value, you will require to use the Toolset form's hook "cred_submit_complete".