TaxonomyWebTaggingControl Set SspId and SSPList using JSOM


  • Hello Folks,

    Is there any way to set the TaxonomyWebTaggingControl Set SspId and SSPList using JSOM ?

    The requirement is to get it set on the fly - suppose depending on its parent the Taxonomy Field Control sspid/ssplist mapping should change.

    Tried using the below blog but somehow not working -


    • 편집됨 F MMM 2018년 7월 13일 금요일 오후 12:05
    2018년 7월 13일 금요일 오후 12:01

모든 응답

  • Hi,

    TaxonomyWebTagging Control is a Server Side Control used in SharePoint Visual Web Part, for this control Property SspId and SSPList, it needs to be set via Server Object Model since there is no Client Side API to set this two property for the server side control, you could set the property in Page_Load void based on your own logic like below:

     protected void Page_Load(object sender, EventArgs e)
                SPContext context = SPContext.Current;
                SPSite site = context.Site;
                TaxonomySession session = new TaxonomySession(site);
                TermStore termStore = session.TermStores["Mananged Metadata"];
                Group group = termStore.Groups["System"];
                TermSet keywordsTermSet = group.TermSets["Keywords"];
                TestTaxonomyControl.SSPList = termStore.Id.ToString();
                TestTaxonomyControl.AllowFillIn = true;
                TestTaxonomyControl.IsMulti = true;

    And in the page, added the web part, it will show this control:


    Best Regards

    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact

    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    2018년 7월 16일 월요일 오전 8:25