0

Is there a way to set something simple up for an end user to be able to change the default value for multiple fields in a list?

I would ideally like to have a form to fill out, preferably like the default edit form. Having them go into the list settings and changing each field will not work.

If there's not an OOTB way that I'm missing and need to use REST or CSOM that is perfectly fine.

1 Answer 1

1

You can use the Fields REST API. First you would get the fields, then you could enumerate through each to get the current default values. If the user changes the default value, you could use a HTTP MERGE request to update the DefaultValue property. This could all be done with HTML JavaScript. A nice addition would be to use the RoleAssignments/RoleDefinitionBindings on the list to first check if the user has permissions to manage the list, which would be required to update the default value. See the fields REST API reference here: https://msdn.microsoft.com/EN-US/library/office/dn600182.aspx and the users/groups rest api here: https://msdn.microsoft.com/EN-US/library/office/dn531432.aspx

1
  • I was able to grab the fields using REST but to post them back used JSOM so I could batch update the fields.
    – Jordan
    Commented Apr 10, 2015 at 16:33

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.