johnR-22
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Allowing registered users to add multiple images to existing post
Commencé par : johnR-22
in: Toolset Professional Support
Problem: Solution: You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
3 | 3 | Il y a 6 années et 5 mois | ||
Redirecting user post login to the desired CRED form
Commencé par : johnR-22
in: Toolset Professional Support
Problem: I have a front end page that contains "edit" links in order to encourage contributors to update/amend the information on my site. However, these links for users who arent logged in, point to the login/register page. Id like (if possible) to implement the following functionality. 1. Guest user clicks on EDIT Solution: The WordPress built-in login form supports URL parameter "redirect_to", use it you can redirect logged in user to the specific URL, for example: https://toolset.com/forums/topic/redirecting-user-post-login-to-the-desired-cred-form/#post-914559 Relevant Documentation: https://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect |
2 | 5 | Il y a 6 années et 5 mois | ||
Clear field value upon form submission?
Commencé par : johnR-22
in: Toolset Professional Support
Problem: I have a custom field in a Form that allows Users to submit a comment. When the Form is submitted, I would like to save the comment so it can be viewed on the backend of the site. When the Form is loaded again on the front-end, I would like to show the field as empty so the next User can submit their own comment without seeing the previous comment. Solution: Set the value of the field to be an empty space surrounded by quotation marks: cred_field field='revision-summary' post='vehicle' value=' ' urlparam='' class='form-control' output='bootstrap'] Update any form validation scripts you have to account for the empty string. |
2 | 2 | Il y a 6 années et 6 mois | ||
Struggling with JS client side form validation
Commencé par : johnR-22
in: Toolset Professional Support
Problem: I am trying to add some custom JavaScript form validation to a CRED form, but it doesn't seem to be working as expected. Solution: Bind to the window.load event, not the document ready event, to initialize form event handlers. Use the jQuery namespace instead of "$" to access the jQuery object. Here is a template: jQuery(window).bind('load', function() { // Your custom validation code goes here using jQuery instead of $ }); |
3 | 16 | Il y a 6 années et 6 mois | ||
Custom field revisions
Commencé par : johnR-22
in: Toolset Professional Support
Problem: Solution: |
2 | 3 | Il y a 6 années et 6 mois | ||
How to pass ID of the person performing the edit
1
2
Commencé par : johnR-22
in: Toolset Professional Support
Problem: I would like to capture information about the User who submitted a CRED edit post form so I can moderate submissions efficiently from wp-admin. Solution: Use a generic field in the form to capture the current User's ID, then use the CRED API to do something with that information. Relevant Documentation: |
3 | 24 | Il y a 6 années et 6 mois | ||
How to show related custom post types
Commencé par : johnR-22
in: Toolset Professional Support
Problem: On a single post, I would like to show a list of related posts from the same post type. Cars are organized using three taxonomies - Make, Model, and Series. I would like to show all the cars in the same Make and Model as the current car. Solution: For the most flexibility, use a 4th taxonomy "Related Vehicles" and create a term for each car, where the term slug matches the car's post slug. Create a View filtered by Related Vehicle, where the term is set using a shortcode attribute. Use the current post's slug in the shortcode attribute to display a list of posts related to the current post. For more simplicity, you can use the two taxonomies Make and Model to filter a View of Cars, where the terms are set by the current post. This approach will not allow arbitrary relationships. |
2 | 8 | Il y a 6 années et 6 mois | ||
Membership demo is not working (Reference sites)
Commencé par : johnR-22
in: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
2 | 3 | Il y a 6 années et 7 mois |