Elsie
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 | Topic | Supporter | Voix | Publications | Nouveauté |
|---|---|---|---|---|---|
|
Parsing entry for multi check box field
Commencé par : Elsie in: Toolset Professional Support |
|
1 | 6 | Il y a 12 months | |
|
Content box not showing in admin for a post
Commencé par : Elsie in: Toolset Professional Support |
|
1 | 5 | Il y a 1 year, 3 months | |
|
Adding post relationships
Commencé par : Elsie in: Toolset Professional Support |
|
1 | 4 | Il y a 1 year, 5 months | |
|
Adding post relationships
Commencé par : Elsie in: Toolset Professional Support |
|
1 | 4 | Il y a 1 year, 6 months | |
|
Conditional logic not working in Views
Commencé par : Elsie in: Toolset Professional Support |
|
3 | 7 | Il y a 2 years, 1 month | |
|
I'm getting a Google Maps error, presumably from the Toolset shortcode I'm using
Commencé par : Elsie in: Toolset Professional Support |
|
2 | 4 | Il y a 3 years | |
|
Setting up taxonomy to show on default archive page
Commencé par : Elsie in: Toolset Professional Support |
|
2 | 13 | Il y a 3 years, 1 month | |
|
Need to get two loop items to work inside a view
Commencé par : Elsie in: Toolset Professional Support |
|
2 | 5 | Il y a 3 years, 3 months | |
|
Cannot figure out how to get the post count to show only once in a view
Commencé par : Elsie
in: Toolset Professional Support
Problem: How to add the post count Solution: Use [wpv-found-count] or [wpv-items-count] shortcodes. Relevant Documentation: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-155378 https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-items-count |
|
2 | 5 | Il y a 3 years, 11 months | |
|
The view I made for my post type works. But single content template does not.
Commencé par : Elsie in: Toolset Professional Support |
|
2 | 4 | Il y a 4 years | |
|
I want a form to submit only if someone correctly enters field value from post
Commencé par : Elsie
in: Toolset Professional Support
Problem: How to stop the form from submitting unless a correct value is added and compared with a custom field Solution: - Add a generic field in the form. - Use the cred_form_validate hook to check against the entered field and the custom field in question: https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_validate Add the custom code below according to the documentation:
<?php
add_filter('cred_form_validate','chr_validation',10,2);
function chr_validation($error_fields, $form_data)
{
//field data are field values and errors
list($fields,$errors)=$error_fields;
//uncomment this if you want to print the field values
//print_r($fields);
//validate if specific form
if ($form_data['id'] == FORMID)
{
//check my_field value
if ($fields['generic-field']['value'] != types_render_field("custom-field", array()) )
{
//set error message for my_field
$errors['generic-field'] = 'Please enter a correct PIN.';
}
}
//return result
return array($fields,$errors);
}
Relevant Documentation: |
|
2 | 15 | Il y a 4 years | |
|
Toolset is adding paragraph tags to my output, and I don't want it to.
Commencé par : Elsie in: Toolset Professional Support |
|
2 | 8 | Il y a 4 years, 5 months |