0 Replies Latest reply on Jul 14, 2015 7:23 AM by larry.enzer

    Need help with initializing UserPicker

    larry.enzer

      Hello Group:

       

      I am using the People Picker functionality in a page on our site. I allow the code to work using:

       

      new jive.UserPicker.Main({

                  multiple:false,

                  $input:$j('input[name="addUsername1"]'),

                  placeholder: 'Jane Doe',

                  valueIsUsername:false

              });

       

      What I need to do is initialize the field with a known user if they have already chosen one and saved their update. I see that there is a startingUsers default parameter when initializing this widget. Could you please help me and send me a detailed data structure of the json used to initialize this element?

       

      // a JSON array of user data to initialize the input

      startingUsers: { users : [],

       

      Thanks,

       

      Larry