I have some JSON that is populated when a user sets up a web part, the JSON is used as the config i don't want to display this data to the user and I cannot see any way to simply hide a multi line property pane field. Does anyone know of a way to do this?

I have also looked at alternative solutions for storing and reading the JSON, one would be to simply store the data in a list, however the problem i see with this solution, is if and when the web part is deleted this data is still available and there is no way for me to be able to run a set of actions when the web part is deleted, leaving this unnecessary list on my tenant. The other option would be using the property bag, however this still leaves the same issue with not be able to clean up as and when the web part is removed.

Can someone please provide an alternation solution or a workaround for my issue.

1 Answer 1


If we're talking about an SPFx custom web part, you can defined a web part property but do not create a Property Pane Field for it. Thus, you'll be able to set it programmatically and users won't be able to modify it via UI.

  • thank you, knew it would be something so simple like that, didn't realize you could just declare them in the manifest
    – Joel-Homan
    Commented Sep 3, 2019 at 8:48

Your Answer

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

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