annaA-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 |
---|---|---|---|---|---|
Connect host to their properties automatically
Started by: annaA-2
in: Toolset Professional Support
Problem: I have two post types - Hosts and Structures - in a post relationship. Each User can be the author of one Host post, and can create multiple Structure posts using Forms. When the User submits a Form to create one of these Structure posts, I would like to automatically connect it to the User's Host post. Solution: Use the cred_save_data API to trigger custom code when the Structure post is created. Use the toolset_connect_posts API to link the two posts programmatically. add_action('cred_save_data', 'func_connect_host_with_property',10,2); function func_connect_host_with_property($post_id, $form_data){ if ($form_data['id']==43){ $current_user_id = get_current_user_id(); $args = array( 'author' => $current_user_id, 'post_type' => 'proprietario', 'fields' => "ids"); $found_profile = get_posts($args); if(count($found_profile) > 0){ toolset_connect_posts( 'proprietario-struttura',$found_profile[0], $post_id ); } } } Relevant Documentation: |
2 | 6 | 3 years, 10 months ago | ||
Customization home page filter search
1
2
Started by: annaA-2 in: Toolset Professional Support |
2 | 22 | 3 years, 10 months ago | ||
Home page filter search by city/state
Started by: annaA-2 in: Toolset Professional Support |
2 | 7 | 3 years, 10 months ago | ||
Add customers review like airbnb
Started by: annaA-2
in: Toolset Professional Support
Problem: Solution: |
2 | 3 | 3 years, 10 months ago | ||
Form notification to an email field of the page which contains the form
Started by: annaA-2 in: Toolset Professional Support |
2 | 8 | 3 years, 10 months ago | ||
Front-end Forms User field access controls
Started by: annaA-2
in: Toolset Professional Support
Problem: I have applied Access Controls to User Field Groups, but the restrictions do not seem to be applied in front-end User Forms. Solution: Access Control for User fields only applies in wp-admin. If you'd like to restrict access to specific content based on User roles, you can use Access Control shortcodes. So to display different Forms to different User roles, you could do something like this: [toolset_access role="role1" operator="allow"][cred_user_form form='edit-user-role1'][/toolset_access] [toolset_access role="role2" operator="allow"][cred_user_form form='edit-user-role2'][/toolset_access] You could do something similar directly inside the Form to show or hide input fields if you prefer to use one Form. You must use Expert Mode to edit the Form shortcodes. This example only shows these two fields to users in the role "role1": [toolset_access role="role1" operator="allow"] <div class="form-group"> <label>[cred_i18n name='user-birthdate-label']user birthdate[/cred_i18n]</label> [cred_field field='user-birthdate' force_type='field' class='form-control' output='bootstrap'] </div> <div class="form-group"> <label>[cred_i18n name='user-image-1-label']user image 1[/cred_i18n]</label> [cred_field field='user-image-1' force_type='field' class='form-control' output='bootstrap' previewsize='thumbnail'] </div> [/toolset_access] |
2 | 15 | 3 years, 10 months ago | ||
I need help with registration form
Started by: annaA-2
in: Toolset Professional Support
Problem: I would like to include the login and email information of the new User created by Forms in an email notification. Solution: Use the Placeholders feature to insert information about the new User in an email notification: User login: %%USER_LOGIN_NAME%%<br /> User email: %%USER_EMAIL%%<br /> |
2 | 7 | 3 years, 11 months ago | ||
My layout disappers
Started by: annaA-2 in: Toolset Professional Support |
2 | 7 | 4 years, 10 months ago |