Multiple Input

Home Forums Quform WordPress Multiple Input

This topic is: resolved
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #30244
    jennis015
    Participant

    Hi !
    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.
    #30252
    jennis015
    Participant

    Hi Ally I forgot to clarify that I was referring to a Multiselect enhanced., Thanks!

    #30259
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #30264
    jennis015
    Participant

    Hi Ally! thanks very much this works perfect!

    #30272
    jennis015
    Participant

    Hi 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!!

    #30281
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #30306
    jennis015
    Participant

    Hi 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 Bajos

    may 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,

    #30309
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2019 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy