Hello Team,
We have a taxonomy picker control which is developed by taking reference for the GitHUB taxonomy picker reporsitory created for SharePoint Online.
We have taxonomy picker field on a page we want to set the value of the picker(asp:hideen control) to a term by default.
We tried with the wss,name,guid format to assign it to the control but its not working.
Could you please help us with the requirement.
Code snippets will be useful.
Thanks.
VINAYAK BHANGALE
Are you using javascript? Can you check this code?
var field = list.get_fields().getByInternalNameOrTitle(“column name”);
var taxField = context.castTo(field, SP.Taxonomy.TaxonomyField);
taxField.setFieldValueByTerm(item, term, lcid);
item.update();
No we are not using JavaScript…we are using aspx page and code behind csom dll