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 - 271 through 285 (of 721 total)
Problem: I have a Form that creates child posts. If the featured image is not provided in the child post Form, I would like to copy the featured image from the parent post into the featured image of the child post.
Solution: If the parent post is not predefined, then you must use the Forms API to copy the parent post's featured image into the child post's featured image since the parent post cannot be determined at the time the Form is loaded. Use the cred_submit_complete API to automate the process. In that callback you can use toolset_get_related_post or toolset_get_related_posts to query the parent post, then get_post_meta to fetch the featured image, then update_post_meta in the child post to set the featured image programmatically.
Problem: I have a Form where Users are asked to check off several sets of checkbox custom fields. I would like to calculate how many of each type of checkbox was checked, and display the total number of checked checkboxes of each type in the post template.
Solution: Use the cred_save_data API and the Types Field API to determine which checkboxes were checked and add up the totals for each type of checkbox. Save those totals in 4 new custom fields, and display the values of those custom fields in the post template.
Problem:
The user would like to increase the size(height) of the file input field, so the "Choose file" button appears entirely within the input, like this http://prntscr.com/18h7dhe
Solution:
This is caused by a style conflict with the theme. And needs to be fixed using custom CSS code. For example: