nabils
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 |
---|---|---|---|---|---|
autoincrement type field with concurrent access
Started by: nabils in: Toolset Professional Support |
2 | 2 | 6 years, 2 months ago | ||
get the select value of a select field of a form using JS
Started by: nabils
in: Toolset Professional Support
Problem: I would like to use JavaScript to get the selected value and selected option text of a custom select field in a Form. Solution: Use jQuery's attribute selector to find the select field, then read its value and selected option text. Example: var $e = $('select[name="wpcf-booking-contract-type"]'); var val = $e.val(); var text = $e.find('option:selected').text(); Relevant Documentation: |
3 | 7 | 6 years, 2 months ago | ||
Populate minDate value of a datepicker with a post type value
Started by: nabils in: Toolset Professional Support |
2 | 11 | 6 years, 3 months ago | ||
Form expiration not working after update
Started by: nabils in: Toolset Professional Support |
1 | 2 | 6 years, 3 months ago | ||
Changing dropdown selected value based on the datepicker selected date
Started by: nabils
in: Toolset Professional Support
Problem: I would like to use JavaScript to change the value of a select field based on the value selected in a datepicker. Solution: There is no JavaScript API specifically for Toolset Forms, but we integrate the jQuery UI datepicker library so you can use their onSelect API: @http://api.jqueryui.com/datepicker/#option-onSelect |
2 | 2 | 6 years, 4 months ago | ||
Date and upload file is not working for non admin accounts
Started by: nabils in: Toolset Professional Support |
2 | 15 | 6 years, 4 months ago | ||
do processing before submit form and after date selected
Started by: nabils in: Toolset Professional Support |
2 | 2 | 6 years, 4 months ago | ||
select cred field does not take default value
Started by: nabils in: Toolset Professional Support |
2 | 3 | 6 years, 4 months ago | ||
user fields are empty
Started by: nabils
in: Toolset Professional Support
Problem: The issue here is that the user's Form isn't populating his custom fields. Solution: In this case I recommended that the customer re-create the form and this was able to resolve the issue. |
2 | 3 | 6 years, 4 months ago | ||
Generating charts
Started by: nabils in: Toolset Professional Support |
3 | 5 | 6 years, 5 months ago | ||
hide search button once clicked
Started by: nabils in: Toolset Professional Support |
3 | 6 | 6 years, 9 months ago | ||
Filtering a view by taxonomy in multilangual website
Started by: nabils in: Toolset Professional Support |
2 | 4 | 6 years, 10 months ago | ||
cannot popuplate cred field with a url user field
Started by: nabils in: Toolset Professional Support |
2 | 2 | 7 years ago | ||
Cannot compare to zero in cred_form_validate
Started by: nabils in: Toolset Professional Support |
2 | 4 | 7 years, 3 months ago | ||
restrict user to upload pdf file only
Started by: nabils
in: Toolset Professional Support
Problem: I would like to validate the file type of a file uploaded using CRED. Only PDFs should be allowed. Solution: function my_validation($field_data, $form_data) { //field data are field values and errors list($fields,$errors)=$field_data; //validate if specific form if ($form_data['id']==138) { //check if uploaded file is right type if ($fields['wpcf-intern-cv']['field_data']['type'] != 'application/pdf') { //set error message for file $errors['intern-cv'] = 'Wrong file type'; } } //return result return array($fields,$errors); } add_filter('cred_form_ajax_upload_validate','my_validation',10,2); Relevant Documentation: |
3 | 4 | 7 years, 5 months ago |