0

I am trying to create a taxonomy column within JSOM , I am nearly there but I have set the type to :

var fieldSchema = `<Field Type="TaxonomyFieldTypeMulti" 
                           Name="SessionTopics" 
                           DisplayName="Session Topics"
                         Required="TRUE" 
                        Group="Limited Document Library" />`;

and the allow multiple values is still not ticked within the column settings.

I have seen that there is a AllowMultipleValues switch that needs turning on to true, and this should set the tick.

I cannot seem to find it and also I am not sure where to set it.

I have casted the column to :

txField = ctx.castTo(field, SP.Taxonomy.TaxonomyField);  

and I still cannot find the property to set it, to true.

Any ideas ??

1 Answer 1

2

try the below code, I have added Mult="TRUE" this we used to use in our old codes

var fieldSchema = <Field Type="TaxonomyFieldTypeMulti" 
                         Name="SessionTopics" 
                         Mult="TRUE"
                         DisplayName="Session Topics"
                         Required="TRUE" 
                         Group="Limited Document Library" />;
1
  • Excellent, I was going the wrong way after reading that it cannot be set in xml. thanks a lot. Commented Jan 27, 2020 at 10:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.