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 - 1,201 through 1,215 (of 1,528 total)
Problem: I have a Form that creates child posts. When the child post is published, I would like to send an automatic email notification to an email address specified in the parent post's custom fields, but I cannot specify that field in the notification settings.
Solution: You can use some custom PHP code with the cred_notification_recipients API and the toolset_get_related_post API to query the parent post, get the custom field value, and add that email address to the recipients list programmatically:
Problem: I would like to use a Conditional Group in Forms to test whether or not a custom field value is empty, but the conditional does not seem to work correctly.
Solution: You can omit the quotation marks from the condtion to test an empty value.
Problem:
The user would like to have the parent post selected automatically in a form.
Solution:
Regarding the first question, you will need to put the form inside a content template that is bound to the parent post. For example, create a view that will query the "Member" posts where the current user is the author, it should return one post if the user has already a post. Inside the loop, which is bound to that post, you can put the form and use the technique in the following article or the following similar tickets:
- https://toolset.com/course-lesson/selecting-parent-posts-when-using-forms-to-create-child-items/#creating-forms-when-a-parent-post-is-preselected