Add List Item - Exclude option from Choice Column in New Item
I am using the Add List Item action to duplicate an item. There is a choice column in which I want to copy all options to the new item except for one option. What is the proper assignment or function code to do this?
Example:
Original Item Choice Selections - A, B, C
New Item Choice Selections - B, C
Option A should always be excluded.
-
Official comment
Hi Dan Thale,
you can use the following code as Function Expression where [[multichoice]] should be replaced with your internal field name of the choice field:
var array= [[multichoice]];
var index = [[multichoice]].indexOf("A");
array.splice(index,1);
return array;Kind regardsskybow Support Team -
Is there a way to exclude choice A for everyone except the people in the Owners group?
0 -
Hi Maria
The initial question was about modifying a value for "Add list item" action. Your question is most likely more pointing to choice column selection filtering on a form. Check out the answer here: Exclude option from Choice Column in New Item based on SharePoint Permission Groups – skybow Portal0
Please sign in to leave a comment.
Comments
3 comments