I am using JSOM to create columns in my lists and not having issues for text, user, or number columns, until I attempt to add a Choice Column.
I have been trying different methods, but can't get it to create the Choice Column. Here is my current code:
var fieldCollection = newList.get_fields();
//add extra fields (columns) to the list & any other info needed.
fieldCollection.addFieldAsXml('<Field Type="Number" DisplayName="My Number" Name="MyNumber" />', true, SP.AddFieldOptions.AddToDefaultContentType);
fieldCollection.addFieldAsXml('<Field Type="Choice" DisplayName="Approval Status"><CHOICES><CHOICE>Pending</CHOICE><CHOICE>Approved</CHOICE><CHOICE>Rejected</CHOICE></CHOICES></Field>"," Name="ApprovalStatus" />', true, SP.AddFieldOptions.AddToDefaultContentType);
context.load(fieldCollection);
"," Name="ApprovalStatus" />'
at the end of your field xml? I would say that is your problem right there<Field Type="Choice" Name="ApprovalStatus" DisplayName="Approval Status"><CHOICES><CHOICE>Pending</CHOICE><CHOICE>Approved</CHOICE><CHOICE>Rejected</CHOICE></CHOICES></Field>