How do get choices from a Sharepoint list, so the users has a way to define new choices.
Right now I have defined fields in elements.xml, but that is static.
Anybody know how? I would be really great!
Kevin Simper
|
How do get choices from a Sharepoint list, so the users has a way to define new choices. Right now I have defined fields in elements.xml, but that is static. Anybody know how? I would be really great! Kevin Simper |
|||
|
|
|
Kevin, you can change column values manually once deployed or you can use code to change it. You can use a feature receiver to modify choices if you simply want to change values. Here isn example for you:
} You can update or delete choices this way too. |
|||
|
|
|
Create a custom list. Supply the choice in the title column. Save. Repeat as necessary. Create a lookup column in the desired list where the choices should be, point it to the Title column. Now users (I'd limit the editors) can add items to the first list and choices will appear (or disappear if deleted) in the second. |
|||||
|
|
Not sure what you mean by static, but you can definitely edit the column and add new choices. But if you want to have your choices in another list, you might want to use lookup field as opposed to choice field. |
|||||
|