0

「入力できる名前は 1 つだけです」というメッセージが何度も表示されます。次のコードで作成した peoplepicker 入力ボックス (div) で:

// Render and initialize the client-side People Picker.
function initializePeoplePicker(peoplePickerElementId) {

    // Create a schema to store picker properties, and set the properties.
    var schema = {};
    schema['PrincipalAccountType'] = 'User,DL,SecGroup,SPGroup';
    schema['SearchPrincipalSource'] = 15;
    schema['ResolvePrincipalSource'] = 15;
    schema['AllowMultipleValues'] = true;
    schema['MaximumEntitySuggestions'] = 50;
    schema['Width'] = '280px';

    // Render and initialize the picker. 
    // Pass the ID of the DOM element that contains the picker, an array of initial
    // PickerEntity objects to set the picker value, and a schema that defines
    // picker properties.
    this.SPClientPeoplePicker_InitStandaloneControlWrapper(peoplePickerElementId, null, schema);
}

「スキーマ['AllowMultipleValues'] = true;」がありますが、宣言、ユーザー入力ピープルピッカーを配置する必要があるdivで、許可された名前は1つだけというメッセージが表示されます。なんで?

複数の名前を入力して、ポップアップするドロップダウンから名前を選択できますが、名前を収集するときに、入力ボックスからすべての名前を収集できないようです。

4

1 に答える 1