kelvinL-2
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
cred_form_validate does validate a custom field
Started by: 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 | 3 years, 11 months ago | |
Allow administrator to assign the author for subscriber
Started by: kelvinL-2 in: Toolset Professional Support |
|
2 | 10 | 3 years, 11 months ago | |
Hide the custom fields in a Form and keep the value after save
Started by: 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 | 3 years, 11 months ago | |
Text Transform not work on Fields and Text
Started by: kelvinL-2
in: Toolset Professional Support
Problem: I am using a Fields and Text block to display some text, including the post slug. I have set the text-transform property for this block to be "uppercase" but the slug always displays in lowercase. Solution: It seems that GeneratePress includes some styles for H1 elements that includes the property text-transform: none;, and you would have to override that using custom CSS. Add the CSS class tb-uppercase-override to the Fields and Text block, then add this CSS in the template, an enqueued CSS file, or in Appearance > Customize > Additional CSS: .tb-uppercase-override h1 { text-transform: uppercase; } That will override the GP theme style. |
|
2 | 12 | 3 years, 11 months ago | |
Customize the post title using $_POST or $fields
Started by: kelvinL-2 in: Toolset Professional Support |
|
2 | 2 | 3 years, 11 months ago | |
Toolset not really load the bootstrap 4 css
Started by: kelvinL-2 in: Toolset Professional Support |
1 | 3 | 3 years, 11 months ago | ||
Custom post with two or more content template
Started by: kelvinL-2 in: Toolset Professional Support |
1 | 2 | 3 years, 11 months ago | ||
Setting the grid for different viewport
Started by: kelvinL-2 in: Toolset Professional Support |
|
2 | 9 | 3 years, 11 months ago | |
unserialize(): Error at offset error message from /wp-content/plugins/types/
Started by: kelvinL-2 in: Toolset Professional Support |
|
2 | 12 | 3 years, 11 months ago | |
adding javascript to custom field at dashboard
Started by: kelvinL-2 in: Toolset Professional Support |
|
2 | 6 | 3 years, 12 months ago | |
Adding social login to login form
Started by: kelvinL-2 in: Toolset Professional Support |
|
2 | 4 | 3 years, 12 months ago | |
Always prompt Toolset plugin cannot connect to toolset(dot)com
Started by: kelvinL-2 in: Toolset Professional Support |
|
2 | 3 | 3 years, 12 months ago | |
Pagination not work, jquery error
Started by: kelvinL-2 in: Toolset Professional Support |
|
2 | 4 | 3 years, 12 months ago | |
dynamic galleries and sliders for templates issue
Started by: kelvinL-2 in: Toolset Professional Support |
|
2 | 6 | 3 years, 12 months ago | |
Substitute of Toolset Module Manager
Started by: kelvinL-2 in: Toolset Professional Support |
|
2 | 4 | 4 years ago |