Welcome to the Alfresco Builder Network

Represents a UI field in a form.

Basic Usage

All form field editors (aka widgets) on a Form are rendered by means of a FormFieldComponent that takes an instance of a FormFieldModel:

<adf-form-field [field]="field"></adf-form-field>

This component depends on the FormRenderingService to map the FormFieldModel to a Form Field UI component based on the field type or the metadata information.

Class members

Properties

NameTypeDefault valueDescription
fieldFormFieldModelnullContains all the necessary data needed to determine what UI Widget to use when rendering the field in the form. You would typically not create this data manually but instead create the form in APS and export it to get to all the FormFieldModel definitions.

Details

You would typically not use this component directly but instead use the <adf-form> component, which under the hood uses <adf-form-field> components to render the form fields.

Field Type -> Form Field Component mappings

Forms defined in APS have the following default mappings for the form fields:

APS Form Designer WidgetField TypeComponent Type
TexttextTextWidgetComponent
Multi-line textmulti-line-textMultilineTextWidgetComponentComponent
NumberintegerNumberWidgetComponent
CheckboxbooleanCheckboxWidgetComponent
DatedateDateWidgetComponent
DropdowndropdownDropdownWidgetComponent
TypeaheadtypeaheadTypeaheadWidgetComponent
AmountamountAmountWidgetComponent
Radio buttonsradio-buttonsRadioButtonsWidgetComponent
PeoplepeoplePeopleWidgetComponent
Group of peoplefunctional-groupFunctionalGroupWidgetComponent
Dynamic tabledynamic-tableDynamicTableWidgetComponent
HyperlinkhyperlinkHyperlinkWidgetComponent
HeadergroupContainerWidgetComponent
Attach FileuploadAttachWidgetComponent or UploadWidgetComponent (based on metadata)
Display valuereadonlyTextWidgetComponent
Display textreadonly-textDisplayTextWidgetComponent
N/AcontainerContainerWidgetComponent (layout component)
N/AN/AUnknownWidgetComponent

Interested in trying Alfresco?

Try Now