Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to update field properties ShowInEditForm, ShowInNewForm and ShowInViewForms #999

Closed
matsla opened this issue Oct 20, 2022 · 2 comments
Assignees
Labels
area: model 📐 Related to the core SDK models

Comments

@matsla
Copy link

matsla commented Oct 20, 2022

Add support to update properties ShowInEditForm, ShowInNewForm and ShowInViewForms after a field has been created.

@jansenbe
Copy link
Contributor

@matsla : this will require wrapping the SetShowInDisplayForm and related methods from SP.Field. See https://s-kainet.github.io/sp-rest-explorer/#/entity/SP.Field.

This is a good feature to include, if you're under a time constraint you could implement this yourselves by calling the REST API from your code. See https://pnp.github.io/pnpcore/using-the-sdk/basics-customapirequests.html#making-a-custom-spo-rest-request to learn more

@jansenbe jansenbe added the area: model 📐 Related to the core SDK models label Oct 20, 2022
@jansenbe jansenbe self-assigned this Nov 4, 2022
@jansenbe
Copy link
Contributor

jansenbe commented Nov 4, 2022

@matsla : just implemented this, see the linked commit for usage information (will also update docs).

@jansenbe jansenbe closed this as completed Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: model 📐 Related to the core SDK models
Projects
None yet
Development

No branches or pull requests

2 participants