id()); $SafeFieldId = !is_null($H_Field) ? defaulthtmlentities($H_Field->Id()) : ""; $SafeErrorMessage = defaulthtmlentities($H_ErrorMessage); $SafeControlledName = defaulthtmlentities($H_ControlledName); $SafeVariantName = defaulthtmlentities($H_VariantName); $SchemaOptions = []; foreach (MetadataSchema::getAllSchemas() as $Schema) { $SchemaOptions[$Schema->Id()] = $Schema->Name() . " Schema"; } $SchemaOptionList = new HtmlOptionList("SC", $SchemaOptions, $H_Schema->id()); $SchemaOptionList->submitOnChange(true); if (!is_null($H_Field)) { $FieldList = $H_Schema->getFieldsAsOptionListObject( "F_FieldId", MetadataSchema::MDFTYPE_CONTROLLEDNAME, $H_Field->Id(), false ); $FieldList->submitOnChange(true); $FieldList->printIfEmpty(false); $H_FormUI->addHiddenField("F_FieldId", $H_Field->Id()); $FormTable = new HtmlTable(); $FormTable->setTableClass("table"); $FormTable->addRowWithHeader([ "Field:", $FieldList->getHtml() ]); } $AddButton = new HtmlButton("Add"); $AddButton->setIcon("Plus.svg"); # ----- DISPLAY -------------------------------------------------------------- ?>

# Controlled Name Added

The following controlled name has been added:

,

Add Another Controlled Name

Edit Controlled Names

# Add Controlled Name

printHtml(); ?>

getHtml(); ?> DisplayFormTable(); ?> getHtml(); ?>

No controlled name fields exist. Use the metadata field editor to add controlled name fields.