Page Under Construction - Introduction
Coming SoonMandatory Fields using _field.value
- Open the Companies Form screen from the screen's home page. This ensures there is no data selected.
- Click on the Company Name field to open its properties. Ensure your screen is unlocked.
- Add a Formatting Rule:
- Rule Expression,
_field.value == _NULL
- This expression will evaluate to true when this field is null.
- Click
Insert excerpt |
---|
| _addIcon |
---|
| _addIcon |
---|
nopanel | true |
---|
|
next to Style.- We will create a style to highlight the field if the rule expression is true. Set the options how you feel are appropriate to highlight the field. Here is an example setup:
- Name,
Mandatory Fields
. - Text Colour field,
#d0021b
. - Font Weight field,
Bolder
. - Save your changes
- The style is added to the Formatting Rule.
- If there is an existing style to be used, this can be selected from the dropdown.
- Save your changes.
- Close and reopen the Companies Form to ensure the new formatting rule is applied.
- Lock the screen. Now the field label is red.
- Image Added
- Notice when you move your mouse over the field the label changes colour. We will look at this in the next section.
Exercise
Go back to the Company Form and add a CSS property to the shared style, Mandatory Fields, which applies the red text colour when the mouse moves over the Company Name field.