sharepointchoicefield

I need to add a choice field to sharepoint that has values depending on the current selection


I need to add a choice field to sharepoint that has values depending on the current selection.

Example:

if the current selection is Open then the options have to be 'open, and In progress

**Current selection   |  Possible selections**
Open                  |  Open,In progress
In progress           |  In progress,To be communicates,rework
Rework                |  Rework,In Progress

...

That way i am forcing the user to follow some specific flow


Solution

  • You can achieve this sort of behavior by editing your list's EditForm.aspx page and adding some JavaScript to the page.

    Although I can't seem to find any examples for making dependant drop downs, there are a couple examples of modifying the EditForm to hide fields or make them readonly: