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.

enter image description here

The code snippet is below:

TaxonomyField taxoField = spField as TaxonomyField; // spField is the SPField object.

var twtc = new TaxonomyWebTaggingControl();
twtc.IsMulti = true;
twtc.AnchorId = taxoField.AnchorId;

However, if I do not set the AnchorId property, the term is resolved.

Any suggestion shall be appreciated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.