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?

1 Answer 1

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

1
  • 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. Commented Aug 27, 2019 at 14:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.