0

I am trying to add the following code:

<SharePointWebControls:UserField FieldName="Site Owner" runat="server"></SharePointWebControls:UserField>

in a Script Editor Web Part.

However, nothing happens.

Does the Script Editor Web Part support this?

0

No, Script Editor web part just supports HTML/CSS/JavaScript/jQuery code, it is not available for SharePoint server web controls.

You can add the code into the page via SharePoint Designer 2013 instead of Script Editor web part.

A demo for your reference:
enter image description here

The result is:
enter image description here

  • Thank you so much for the explanation. I get it now. I would have to create a custom webpart that can accommodate what I'm trying to do. – ericute Aug 27 at 14:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.