jasonG-7
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 |
---|---|---|---|---|---|
unable to edit content template – Uncaught TypeError
Started by: jasonG-7 in: Toolset Professional Support |
1 | 2 | 4 years, 10 months ago | ||
how do we cache this toolset view?
Started by: jasonG-7 in: Toolset Professional Support |
|
2 | 6 | 4 years, 11 months ago | |
clicking pager creates multiple calls to admin-ajax . php
Started by: jasonG-7 in: Toolset Professional Support |
|
2 | 2 | 5 years ago | |
view of toolset views plugin – form filter wpv-filter – suddenly stopped working
Started by: jasonG-7 in: Toolset Professional Support |
1 | 2 | 5 years ago | ||
Conflict with "The Events Calendar" Plugin
Started by: jasonG-7 in: Toolset Professional Support |
|
2 | 3 | 5 years, 5 months ago | |
use current post to create new post when submitted
Started by: jasonG-7 in: Toolset Professional Support |
|
2 | 3 | 6 years ago | |
create new post from existing post
Started by: jasonG-7 in: Toolset Professional Support |
|
1 | 3 | 6 years ago | |
add multiple select options with same value
Started by: jasonG-7 in: Toolset Professional Support |
|
2 | 3 | 6 years ago | |
Display field on CRED ‘edit existing’ form but don’t display the fields contents
Started by: jasonG-7
in: Toolset Professional Support
Problem: I have an edit post Form that includes a custom field. I would like to make the field empty when the Form loads. If the User adds a value to this field, I want to save that value as the custom field value. However, if the User does not add a value to this field I want to keep the original field value. Solution: [cred_field field="some-field" force_type="field" class="form-control" output="bootstrap" value=" "] However, if it's a numeric field this will show a validation error if the User does not modify the value on the front-end, because an empty space is not a number. That can be confusing, and there are some other quirks so the most foolproof way to set this up is to delete the actual field from the Form. Add a generic field to capture a new value, then use the Forms API to overwrite the existing field value with the new field value. Here is an example: // overwrite the values of submitter custom fields if the User supplies them in the generic fields of Form 8167 add_action('cred_save_data', 'overwrite_submitter_fields_action',10,2); function overwrite_submitter_fields_action($post_id, $form_data) { // if a specific form if ($form_data['id']==8167) { if( isset($_POST['offer_email']) && trim($_POST['offer_email']) != '' ) { update_post_meta( $post_id, 'wpcf-submitter_email', $_POST['offer_email'] ); } if( isset($_POST['offer_title']) && trim($_POST['offer_title']) != '' ) { update_post_meta( $post_id, 'wpcf-submitter_title', $_POST['offer_title'] ); } } } Relevant Documentation: |
|
2 | 8 | 6 years ago | |
send email notification on form update
Started by: jasonG-7 in: Toolset Professional Support |
|
2 | 6 | 6 years, 1 month ago | |
map marker squeezed
Started by: jasonG-7 in: Toolset Professional Support |
1 | 2 | 6 years, 1 month ago | ||
zip code radius search
Started by: jasonG-7 in: Toolset Professional Support |
|
2 | 2 | 6 years, 4 months ago |