CRED plugin provides an API, making it easy to customize your post or user forms. The API includes hooks (actions and filters) to accomplish specific tasks using PHP code.
When you ask for help or report issues, make sure to tell us all related information about your form and what you want to achieve.
Viewing 15 topics - 121 through 135 (of 357 total)
Problem: I would like to create a contact form for my site, but I do not necessarily want to create posts with this Form. I would prefer to use it strictly for sending email notifications.
Solution: Toolset Forms can send email notifications, but those forms will always create or edit some post. There is no easy workaround to prevent the creation of posts, but you could create a custom cron script that automatically deletes those posts at regular intervals if you do not want to keep them stored in your database.
Problem: I have a Form that creates new posts in a custom post type. One of the custom fields holds a telephone number. I would like to prevent the Use from creating a post if the telephone number they submit already exists in the database as a telephone number for another post.
Solution: Use the Forms API hook cred_form_validate to inspect the submitted custom field value. Create a custom post query that also queries posts by that custom field value. If any posts are found in that query, display an error message on the telephone field.