Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • Hi thank you for your answer. The reason for removing options from the choice field is because some periods will be closed and it should not be possible to select the old values. But, in the old items the old period values must be populated. So I try to only remove some values from the dropdown in the quick edit if a user click on the choice field.... I don't know how the read only helps me here or i didn't understood your explanation... Commented Mar 1, 2018 at 12:19
  • My answer was based on what I could surmise from your original description and was partially to elicit further details. I wanted to leave a comment but, my lowly reputation disallows it... Read only won't really apply here I suppose. Do you have a "Status" column indicating when an item is closed? You could use that value to trigger read only on the Period column. Of course you would then want to also make the "Status" column read only once set to closed. Commented Mar 1, 2018 at 12:29
  • The problem is not the read only on the columns. It is more the selectable options on the dropdown which are populated by the system ... I can not remove values with javascript/jquery or change the choices on the array of the field... Commented Mar 1, 2018 at 13:11
  • Why would you need to remove values with JavaScript when you could just change the select column fields? If an item is closed, the Period column becomes read-only and will never change. Then, you can just change the choices in the Period column. Anyway, just an idea. Commented Mar 1, 2018 at 13:53
  • I have to remove this values from the dropdown because a administrator should be able to change this values. This will be done by a powershell in the background... A normal user don't have the permissions to change old values but it must be saved in the list for reporting etc. If a new item is added by a user, the old periods must be removed from the choice dropdown. Commented Mar 1, 2018 at 14:40