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 - 1,921 through 1,935 (of 1,959 total)
Problem:
A form to publish posts is supposed to show the published post after submission, but does not redirect.
Solution:
The issue was that a redirect delay was included in the form, and a bug meant that anything other than a delay of zero broke the redirection.
Problem: I would like to use Forms Commerce to programmatically add different products to the User's cart depending on the location of the Form they submit.
Solution: Choose the option "Always this product, regardless of inputs" and select any product. Then add a generic hidden field to the Form. Set the default value of the hidden field to be the current post ID, like this:
Then you can use custom code with the Forms Commerce API to manipulate the product by ID.
add_filter( 'cred_commerce_add_product_to_cart', 'which_product_hook', 10, 3 );
function which_product_hook( $product_id, $form_id, $post_id ) {
if ( $form_id == 123 && isset($_POST['current-post-id']) ) {
$product_id = 456;
// or use the toolset_get_related_post API to get the parent / grandparent of the current post
}
return $product_id;
}
Problem:
I want to suggest a new feature for Toolset. Where and how can I do that? How to add my voice to the request(s) discussed in the below thread?