People Picker without React?

%3CLINGO-SUB%20id%3D%22lingo-sub-206505%22%20slang%3D%22en-US%22%3EPeople%20Picker%20without%20React%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-206505%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20got%20a%20SPFX%20webpart%20written%20without%20any%20framework.%20It%20is%20a%20form%20to%20create%20new%20items%20in%20a%20calendar%20list.%26nbsp%3B%3C%2FP%3E%3CP%3EOne%20of%20the%26nbsp%3Bcolumns%20in%20the%26nbsp%3Blist%20is%20a%20textcolumn%20that%20expect%20an%20account%20name%20(display%20name).%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20in%20some%20way%20add%20a%20input%20field%20in%20the%20form%20that%20fetch%20the%20account%20names%20from%20sharepoint%20online%3F%3C%2FP%3E%3CP%3EI%20found%20a%20PeoplePicker%20component%20at%20the%20Office%20Fabric%20UI%20but%20it%20is%20seems%20to%20be%20used%20in%20a%20WebPart%20created%20with%20react%20and%20the%20web%20part%20I%20got%20only%20needs%20a%20new%20field%20and%20it%20seems%20to%20little%20to%20recreate%20the%20web%20part%20using%20react.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EUPDATE%3A%26nbsp%3B%3C%2FSTRONG%3EI%20dicovered%20that%20I%20don't%20need%20to%20use%20the%20webpart%20to%20save%20items%20in%20the%20list.%20The%20list%20out%20of%20the%20box%20form%20has%20a%20link%20that%20can%20be%20used%20to%20open%20the%20form%20from%20any%20page.%20And%20with%20a%20little%20update%20in%20the%20link%20can%20I%20fill%20the%20form%20and%20get%20back%20to%20the%20page%20from%20where%20I%20opened%20the%20form%2C%20nice!%20Here%20is%20the%20link%20to%20that%20trick%3A%26nbsp%3B%3CA%20title%3D%22How-to-Redirect-to-a-different-page-after-adding-new-list-items-in-SharePoint%22%20href%3D%22https%3A%2F%2Fwww.nhaustralia.com.au%2Fblog%2FHow-to-Redirect-to-a-different-page-after-adding-new-list-items-in-SharePoint%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EHow-to-Redirect-to-a-different-page-after-adding-new-list-items-in-SharePoint%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20My%20question%20is%3A%20how%20can%20I%20show%20a%20message%20just%20before%20I%20get%20redirected.%20It%20would%20be%20nice%20to%20let%20the%20user%20that%20the%20form%20has%20been%20saved%20before%20the%20redirect.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards%3C%2FP%3E%3CP%3EAmerico%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-206505%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Regular Contributor

Hi,

 

I got a SPFX webpart written without any framework. It is a form to create new items in a calendar list. 

One of the columns in the list is a textcolumn that expect an account name (display name). 

Is it possible in some way add a input field in the form that fetch the account names from sharepoint online?

I found a PeoplePicker component at the Office Fabric UI but it is seems to be used in a WebPart created with react and the web part I got only needs a new field and it seems to little to recreate the web part using react.

 

UPDATE: I dicovered that I don't need to use the webpart to save items in the list. The list out of the box form has a link that can be used to open the form from any page. And with a little update in the link can I fill the form and get back to the page from where I opened the form, nice! Here is the link to that trick: How-to-Redirect-to-a-different-page-after-adding-new-list-items-in-SharePoint 

Now My question is: how can I show a message just before I get redirected. It would be nice to let the user that the form has been saved before the redirect.

 

Best regards

Americo

0 Replies