This custom K2 SmartForms control is based on the taxonomy Picker pattern on the Office 365 Patterns and Pracites site:
https://github.com/OfficeDev/PnP
The 'Core.TaxonomyPicker'- https://github.com/OfficeDev/PnP/tree/master/Components/Core.TaxonomyPicker
The goal of this project is to create a custom K2 SmartForms control with the same look and feel as the Taxonomy picker in SharePoint, using SmartObjects to retrieve and pick data instead of the native SharePoint JavaScript to retrieve values from SharePoint.
There are few advanatages that a custom control would bring over the use of the tree control in K2 (as this can be accomplished with the SmartForms native tree view control):
Key architecutre points:
Control setup and walkthrough.
Navigate to /_layouts/15/termstoremanager.aspx in a SharePoint site collection, and add terms to the term store.
Add the custom control to the server, all resource files should be imbeded in the DLL so no need to transfer files
Add the control to a view, then go to it's settings
Get the Guide of the MMS Store, Term set, and Taxonomy SMO internal name you wish to use. Enter these values in the settings.
When you run the form you should then see the following:
You can start typing and the suggestions box will populate:
Or you can click the Tag to open the Picker tree: 8.This is how the picked terms will appear:
If you update the Taxonomy store, you will have to do an IISReset to see that reflected in the control
You've probably noticed MANY many things that need to be improved in this control. Grab a Fork and go for it!