Fields:
- Fields:
- <field label>: <field value>
<properties>: <properties values>
....
....
- <field label>: <field value>
- ....
- <field label>: <field value>
<properties>: <properties values>
....
....
- <field label>: <field value>
- ....
For each item under Fields, the first properties pair MUST be <field label>: <field value>, then followed by single or multiple <properties>: <properties values>.
<field label>
<field label> is also the label either displayed at the left or on top of the field. It is the minimum information required to initialize a field.
<field id> will be generated using <field label> with the first letter converted to lowercase and trimming all.
<field values>
Field initial value will be displayed on screen.
<properties>
Refer to the <Field> properties section.
Example
#- Fields:
- Address: Great Russell St, London, WC1B 3DG
- Select Drinks:
tp: select
list:
- Milk
- Coffee
- Orange Juice
- Address: Great Russell St, London, WC1B 3DG
- Select Drinks:
tp: select
list:
- Milk
- Coffee
- Orange Juice
Without specifying any properties, Address is just a simple text field with init value only. Select Drinks is a select field with generated id selectDrinks
Visit example.u.team/yamlfield to try out the live examples.