Documentation Index
Fetch the complete documentation index at: https://mintlify.com/UNOPS/UiMetadataFramework/llms.txt
Use this file to discover all available pages before exploring further.
Overview
InputFieldAttribute is used to decorate properties that represent input fields in forms. It extends FieldAttribute with additional functionality specific to user input, such as making fields required.
Namespace
Inheritance
Properties
InputFieldAttribute-Specific Properties
Indicates whether a value for this input field is required before submitting the form. When set to
true, the form cannot be submitted until the user provides a value.Inherited Properties from FieldAttribute
Display label for the field. If not specified, the property name will be used.
Indicates whether this field should be visible in the UI. Hidden fields are still part of the form but not displayed to the user.
Controls the rendering position of this field relative to other input fields. Fields are displayed in ascending order of their
OrderIndex values.Component category that this field attribute supports. For
InputFieldAttribute, this is always "input". This property is set by the constructor and cannot be changed.Usage Examples
Basic Input Fields
Hidden Fields
Ordered Fields
Mixed Required and Optional Fields
Complex Types with Custom Components
Notes
- The
Requiredproperty only affects client-side validation. Server-side validation should still be implemented. - Fields with
Hidden = trueare still included in form submissions but are not displayed to users. - The
OrderIndexproperty allows you to control field order without rearranging property declarations in your code. - If
Labelis not specified, the framework will use the property name as the label.