CRED plugin allows you to build front-end forms for creating and editing content. These forms can include all the fields that belong to the content and display them with your HTML styling. CRED forms also support input validation and automatic email notifications.
When you ask for help or report issues, make sure to tell us the structure and the settings of your form.
Viewing 15 topics - 361 through 375 (of 719 total)
Problem:
The user has several generic fields set to be required, but the form submission completes even when values for the fields are not provided
Solution:
It turns out that the user was using the same slug for the generic fields. Once one of them has value, the form ignores the other fields. If each one of the fields has a unique value, the validation works as expected.
Problem:
Can Toolset be used to make conventional contact forms?
Solution:
You can easily create "Contact Us" form using Toolset.
To create a content Us form using Toolset, you should create a post type "Contacts" as well as add the custom fields as required to display with the Contacts post type and then create a post for to add new post for that "Contacts" post type.
Problem: I would like to enable my Users to submit a partial post using Forms, then return later and complete their submission.
Solution: You can use multiple Forms to achieve a similar effect. Use one New Post Form to create the initial post, then use multiple Edit Post Forms to complete the post. Each Form can include different input fields. You may need to use the expert mode builder to delete required fields as needed per step.
Problem: I am using the cred_save_data Forms API with new and edit post Forms that create or edit child posts in a O2M post relationship. The Form contains a post relationship field where I have defined the parent using a URL parameter. I get a 500 error when submitting the Form with AJAX.
Solution: Do not rely on the $_GET superglobal to access values in URL parameters. AJAX submissions do not have access to the parent page's URL params in $_GET. Instead, it is better to use a hidden field in the Form using the URL parameter option to store the parent page's URL parameter value in the Form. Then you can access that value in a cred_save_data hook in the $_POST superglobal instead. This approach will work well in either AJAX or standard Form submissions.
It is also important to note that the post relationship managed in the Form will not be available to the Post Relationships API during a cred_save_data hook. Relationships are not established by the time the hook fires, so you would have to get the relationship field value directly from $_POST in a cred_save_data hook. Or, use a cred_submit_complete hook. Post relationshps are available in the Post Relationships API at the time of cred_submit_complete.