|
How to populate a feedback form dynamically with custom repeatable fields
Started by: Stefan
in: Toolset Professional Support
|
|
2 |
3 |
2 years, 9 months ago
Stefan
|
|
Select field get options from shortcode not working
Started by: chrisB-36
in: Toolset Professional Support
|
|
2 |
3 |
2 years, 10 months ago
chrisB-36
|
|
Generating a post title from submitted form fields
Started by: jennZ
in: Toolset Professional Support
|
|
2 |
5 |
2 years, 10 months ago
jennZ
|
|
Transfer values from one multi-select checkbox to another
Started by: himanshuS
in: Toolset Professional Support
|
|
2 |
10 |
2 years, 10 months ago
Waqar
|
|
Filter relationship form child posts
Started by: smileBeda
in: Toolset Professional Support
|
|
3 |
5 |
2 years, 10 months ago
Nigel
|
|
form is not saving
Started by: eliseD-2
in: Toolset Professional Support
|
|
2 |
11 |
2 years, 10 months ago
eliseD-2
|
|
My custom form validation is not working but previously it was working.
Started by: Ankit Katailiha
in: Toolset Professional Support
|
|
2 |
14 |
2 years, 10 months ago
Waqar
|
|
After editing the title-field in a form, make sure slug is updated accordingly
Started by: Fred Konings
in: Toolset Professional Support
Quick solution available
|
|
2 |
3 |
2 years, 11 months ago
Fred Konings
|
|
Extracting Longitude, Latitude from Maps Field
Started by: JEN
in: Toolset Professional Support
Quick solution available
|
|
2 |
4 |
2 years, 11 months ago
JEN
|
|
Split: Extracting Address Data from Maps Field and saving as taxonomy term
Started by: JEN
in: Toolset Professional Support
Quick solution available
|
|
2 |
5 |
2 years, 11 months ago
JEN
|
|
Passing Data to my Customer Relationship System
Started by: tinaW-2
in: Toolset Professional Support
|
|
2 |
2 |
2 years, 11 months ago
Waqar
|
|
Automatically exporting data from filled forms
Started by: FabienS6577
in: Toolset Professional Support
|
|
2 |
2 |
2 years, 12 months ago
Waqar
|
|
Multilanguage Registration Form
Started by: Meg
in: Toolset Professional Support
Quick solution available
Problem:
The customer asked how the WordPress user "Language" field can be set through the Toolset's user form.
Solution:
Informed that there is no built-in method available in the Toolset Forms for this, so it will require some workaround and custom code.
WordPress store's the ISO language code for the user's selected WordPress admin language as a value, in the user meta field with key 'locale'.
In a user registration form, one can include a hidden generic field and fill its value with the language code of the current page's language. After that, the 'cred_save_data' hook can be used to programmatically set that selected language value into the user's 'locale' meta field:
add_action('cred_save_data', 'my_save_data_action',10,2);
function my_save_data_action($user_id, $form_data)
{
// if a specific form
if ($form_data['id']==1234)
{
update_user_meta( $user_id, 'locale', $_POST['locale'] );
}
}
Relevant Documentation:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data
https://developer.wordpress.org/reference/functions/update_user_meta/
|
|
2 |
5 |
3 years ago
Meg
|
|
How to show a user's information from user id in notification
Started by: himanshuS
in: Toolset Professional Support
Quick solution available
Problem:
The user wanted the custom user field values from a user ID passed through the generic field in the form notification.
Solution:
Suggested to use the "cred_subject_notification_codes" and "cred_body_notification_codes" filters to register custom placeholders for form notifications.
Example:
add_filter('cred_subject_notification_codes', 'custom_generic_field_notification', 10, 1);
add_filter('cred_body_notification_codes', 'custom_generic_field_notification', 10, 1);
function custom_generic_field_notification( $defaultPlaceHolders ) {
// get the user ID from the generic field 'evaluatee-user-id'
$target_user_ID = $_REQUEST['evaluatee-user-id'];
// get the first name and last name from the $target_user_ID
$user_first_name = do_shortcode("[wpv-user field='user_firstname' id='".$target_user_ID."']");
$user_last_name = do_shortcode("[wpv-user field='user_lastname' id='".$target_user_ID."']");
// set those first name and last name values in the custom placeholders
$newPlaceHolders = array(
'%%evaluatee_first_name%%' => $user_first_name,
'%%evaluatee_last_name%%' => $user_last_name,
);
return array_merge($defaultPlaceHolders, $newPlaceHolders );
}
Relevant Documentation:
https://toolset.com/documentation/programmer-reference/forms/how-to-use-custom-placeholders-in-cred-notifications/
|
|
2 |
5 |
3 years ago
himanshuS
|
|
Set user administration language via the front end?
Started by: simonM-5
in: Toolset Professional Support
|
|
2 |
3 |
3 years ago
simonM-5
|