kelvinL-2
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é |
|---|---|---|---|---|---|
|
Disable individual custom post page like the archive
Commencé par : kelvinL-2 in: Toolset Professional Support |
|
3 | 4 | Il y a 4 years, 11 months | |
|
Inline edit custom post
Commencé par : kelvinL-2 in: Toolset Professional Support |
|
2 | 3 | Il y a 4 years, 11 months | |
|
Add repeatedly relationship custom post at frontend
1
2
Commencé par : kelvinL-2 in: Toolset Professional Support |
|
2 | 18 | Il y a 4 years, 11 months | |
|
cred_form_validate does validate a custom field
Commencé par : kelvinL-2
in: Toolset Professional Support
Problem: I am trying to validate a custom field with cred_form_validate, but I cannot validate a specific field. Errors never appear in the form. Solution: Be sure to include the form_messages field in the Form builder so errors can be displayed. Then use the following syntax to validate a custom field:
function fn_cred_form_validate($error_fields, $form_data)
{
list($fields,$errors)=$error_fields;
if ($form_data['id']==221) {
if (empty($fields['wpcf-application-tour-number']['value'])) {
//set error message for my_field
$errors['application-tour-number']='Please select tour first';
}
}
return array($fields,$errors);
}
add_filter('cred_form_validate','fn_cred_form_validate',10,2);
Notice that the wpcf- prefix is required in the $fields array, but should not be included in the $errors array. Relevant Documentation: |
|
2 | 9 | Il y a 4 years, 11 months | |
|
Toolset chat support ticket by kelvinL-2 – 1616342153
Commencé par : kelvinL-2 in: Chat Support |
|
1 | 1 |
Il y a 4 years, 11 months
|
|
|
Allow administrator to assign the author for subscriber
Commencé par : kelvinL-2 in: Toolset Professional Support |
|
2 | 10 | Il y a 4 years, 11 months | |
|
Hide the custom fields in a Form and keep the value after save
Commencé par : kelvinL-2
in: Toolset Professional Support
Problem: I have defined a custom field in my Form and set its value using a URL parameter. I would like to hide that field on the front-end, but if I use HTML comments the field value is not saved. How can I hide the field but save the value from a URL parameter? Solution: Use CSS to hide the field itself or a container element: <div style="display:none;">[cred_field ...]</div> Relevant Documentation: |
|
2 | 4 | Il y a 4 years, 11 months | |
|
Customize the post title using $_POST or $fields
Commencé par : kelvinL-2 in: Toolset Professional Support |
|
2 | 2 | Il y a 4 years, 12 months | |
|
Toolset not really load the bootstrap 4 css
Commencé par : kelvinL-2 in: Toolset Professional Support |
1 | 3 | Il y a 4 years, 12 months | ||
|
Custom post with two or more content template
Commencé par : kelvinL-2 in: Toolset Professional Support |
1 | 2 | Il y a 5 years | ||
|
dynamic galleries and sliders for templates issue
Commencé par : kelvinL-2 in: Toolset Professional Support |
|
2 | 6 | Il y a 5 years |