I'm trying to retrieve the selected TaxonomyField value that the user selects from the TaxonomyWebTaggingControl rather than just a string representation. The idea being to eventually create a TaxonomyFieldValue object from that result. i.e.
string selectedTaxonomyTerm = this.TaxonomyWebTaggingControl.Text; // represents the selected term's Label | Guid
TaxonomyFieldValue taxonomyFieldValue = TaxonomyFieldControl.GetTaxonomyValue(selectedTaxonomyTerm); // Converts to a TaxonomyFieldValue object, however ValidateString throws exception because no TaxonomyField is assigned.
// what i want
var selectedTaxonomyField = this.TaxonomyWebTaggingControl.Field // Get the selected Field
var newTaxonomyValue = new TaxonomyFieldValue(selectedTaxonomyField);
newTaxonomyValue.PopulateFromLabelGuidPair(selectedTaxonomyTerm);
So basically i want a way to retrieve the underlying TaxonomyField from the selection of the TaxonomyWebTaggingControl. Any help would be great.