larryL
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 | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Using the toolset_connect_posts function
Commencé par : larryL in: Toolset Professional Support |
2 | 11 | Il y a 4 années et 1 mois | ||
wpt-field-option function not loading select field
Commencé par : larryL in: Toolset Professional Support |
2 | 5 | Il y a 4 années et 2 mois | ||
View filter not working for related fields
Commencé par : larryL
in: Toolset Professional Support
Problem: Solution: This feature is known to us and we do have internal ticket and I raised your voice to our internal ticket but I do not have any ETA when this feature will be added. Please note that there is no ETA on it. Relevant Documentation: |
2 | 5 | Il y a 4 années et 2 mois | ||
Split: the select2 does not always work
Commencé par : larryL in: Toolset Professional Support |
2 | 7 | Il y a 4 années et 2 mois | ||
Dynamic Field values from CPT
1
2
Commencé par : larryL in: Toolset Professional Support |
2 | 26 | Il y a 4 années et 2 mois | ||
Dynamic Field values from CPT
Commencé par : larryL
in: Toolset Professional Support
Problem: I want to create a select field with multiple options, and set the value of another custom field depending on the value selected in the select field. Solution: You can use custom code with the cred_save_data API to get the selected value from one field and save a corresponding value into a Types custom field programmatically. You can find the field selections in the $_POST superglobal. Types fields have a key of "wpcf-" plus the field slug. Generic fields have a key identical to the field slug. So if the select field is a Types field with the slug "select-field", then you would be able to get the selected value like so: $_POST['wpcf-select-field'] If it is a generic field with the slug "select-field", then you would be able to get the selected value like so: $_POST['select-field'] Use the WP function update_post_meta to set a Types field value programmatically. A full example: add_action('cred_save_data', 'tssupp_set_selected_value',10,2); function tssupp_set_selected_value($post_id, $form_data) { $forms = array( 123 ); if ( in_array( $form_data['id'], $forms ) ) { $selected = $_POST['wpcf-select-field']; update_post_meta( $post_id, 'wpcf-points-field', $selected); } } You would change 123 to be the numeric ID of the Form, wpcf-select-field to be the slug of the select field (with the wpcf- prefix if this is a Types field), and wpcf-points-field to be the slug of the points field (with the wpcf- prefix if this is a Types field). That would save the selected value of the select field into the points field when the Form is submitted. Relevant Documentation: |
2 | 5 | Il y a 4 années et 2 mois | ||
Dynamic Field values from CPT
Commencé par : larryL in: Toolset Professional Support |
2 | 11 | Il y a 4 années et 2 mois | ||
user nicknames not loading in select field
Commencé par : larryL
in: Toolset Professional Support
Problem: Solution: |
2 | 5 | Il y a 4 années et 2 mois | ||
View with weekday filtering
Commencé par : larryL in: Toolset Professional Support |
2 | 9 | Il y a 4 années et 2 mois | ||
Color or Background change using Conditionals in Views
1
2
Commencé par : larryL in: Toolset Professional Support |
2 | 24 | Il y a 4 années et 2 mois | ||
Split: Call the post title from one CPT into the CRED form of another
Commencé par : larryL in: Toolset Professional Support |
2 | 11 | Il y a 4 années et 2 mois | ||
CRED display of conditional fields
Commencé par : larryL in: Toolset Professional Support |
2 | 3 | Il y a 4 années et 3 mois | ||
CRED add user field to post field
Commencé par : larryL in: Toolset Professional Support |
2 | 7 | Il y a 4 années et 3 mois | ||
Pass value to number field in CRED
Commencé par : larryL in: Toolset Professional Support |
2 | 5 | Il y a 4 années et 3 mois | ||
Pass post-body to CRED using url parameter
Commencé par : larryL in: Toolset Professional Support |
1 | 2 | Il y a 4 années et 3 mois |