- $this->add('select', 'parent_id', ts('Parent Tag'), $allTag);
+ $this->add('select', 'parent_id', ts('Parent Tag'), $allTag, FALSE, array('class' => 'crm-select2'));
+
+ // Tagsets are not selectable by definition so only include the selectable field if NOT a tagset.
+ $selectable = $this->add('checkbox', 'is_selectable', ts('Selectable?'));
+ // Selectable should be checked by default when creating a new tag
+ if ($this->_action == CRM_Core_Action::ADD) {
+ $selectable->setValue(1);
+ }
+