Home › Forums › Quform WordPress › Multiple Input
- This topic has 7 replies, 2 voices, and was last updated 5 years, 5 months ago by
Ally.
- AuthorPosts
- November 17, 2019 at 11:53 am #30244
jennis015
ParticipantHi !
i created a input with google places. Is it possible to create a multiple input? For example, I could load three places.
Thanks very much!Attachments:
You must be logged in to view attached files.November 18, 2019 at 12:53 pm #30252jennis015
ParticipantHi Ally I forgot to clarify that I was referring to a Multiselect enhanced., Thanks!
November 20, 2019 at 10:03 am #30259Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
November 21, 2019 at 10:05 am #30264jennis015
ParticipantHi Ally! thanks very much this works perfect!
November 22, 2019 at 10:31 am #30272jennis015
ParticipantHi Ally, i was trying for hours, do you know how i can export multiple fields to xprofile like multiple fields?
because, in a text field it appears like array ( new york, paris) and when i use multiple option dont works.‘field_87’ => $form->getValueText(‘quform_7_23’),
any suggests?
Thanks!!November 25, 2019 at 10:22 am #30281Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
November 27, 2019 at 11:04 am #30306jennis015
ParticipantHi Ally.
the suggested code did not work for checkbox, it appears empty, only appear the option the default option. (ex custom) it only works with a text box, but i can edit later.
Example in edit field:
:a:5:{i:0;s:15:”Río de Janeiro”;i:1;s:25:”Estado de Río de Janeiro”;i:2;s:6:”Brasil”;i:3;s:9:”Eindhoven”;i:4;s:13:”Países Bajos”;}
In the frontend:
Río de Janeiro, Estado de Río de Janeiro, Brasil, Eindhoven, Países Bajosmay be i should create a Repeater Fields field in xprofile? Could the information be imported as well?
On the other hand, how to determine the user’s role in the registry, i tried this but it didn t work, because I generated the profile with role *shop_manager* but it does nt imporport the xprofiles, any suggestions?
add_action('quform_post_process_7', function (array $result, Quform_Form $form) { if (function_exists('bp_core_signup_user')) { $username = $form->getValueText('quform_7_6'); $email = $form->getValueText('quform_7_6'); $password = $form->getValueText('quform_7_7'); // XProfile fields $usermeta = array( 'field_1' => $form->getValueText('quform_7_10'), 'field_43' => $form->getValueText('quform_7_6'), 'field_44' => $form->getValueText('quform_7_20'), ); $usermeta['profile_field_ids'] = '1,43,44'; $usermeta['password'] = wp_hash_password($password); $new_user = bp_core_signup_user($username, $password,$usermeta, $user_data->email, array()); $data = array('ID' => $new_user, 'role' => 'shop_manager', ); wp_update_user($data); update_user_meta( $user->ID, 'test', $usermeta ); } return $result; }, 10, 2);
Thanks very much! regards,
November 29, 2019 at 11:33 am #30309Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.