I'm trying to add a TaxonomyWebTaggingControl on a custom page. The issue I'm facing is when I set the Anchor Id property, the term does not resolve.
Notably, it's not for all the terms. Only for one. A screenshot is below.
The code snippet is below:
TaxonomyField taxoField = spField as TaxonomyField; // spField is the SPField object. var twtc = new TaxonomyWebTaggingControl(); twtc.IsMulti = true; twtc.SspId.Add(taxoField.SspId); twtc.TermSetId.Add(taxoField.TermSetId); twtc.AnchorId = taxoField.AnchorId;
However, if I do not set the AnchorId property, the term is resolved.
Any suggestion shall be appreciated.