DavidLozzi / SharePoint-HideDisableFields

Lightweight JavaScript file to easily hide or disable fields on a SharePoint classic list form
MIT License
9 stars 4 forks source link

Javascript error when disabling dropdown fields #1

Closed JasonRuthkoski closed 6 years ago

JasonRuthkoski commented 6 years ago

Hi David,

We're using your script on a small project here in Chicago and it's come in very handy! I did want to let you know about one issue we found though, it doesn't work for disabling dropdown fields. The javascript error was "undefined variable not allowed in strict mode" or something to that effect.

The error occurs on line 75, and appears to be due to the "theControls" variable not being defined. We added a "var" declaration and it fixed it. Just wanted to let you know!

Jason Ruthkoski jserror

DavidLozzi commented 6 years ago

Awesome, thanks, I'll update the code!