Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Page Under Construction - Introduction

Mandatory Fields using _field.value

  1. Open the Companies Form screen from the screen's home page. This ensures there is no data selected.
  2. Click on the Company Name field to open its properties. Ensure your screen is unlocked.
  3. Add a Formatting Rule:
    1. Rule Expression, _field.value == _NULL
      1. This expression will evaluate to true when this field is null.
    2. Click  next to Style.
      1. 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: 
        1. Name, Mandatory Fields.
        2. Text Colour field, #d0021b.
        3. Font Weight field, Bolder.
        4. Save your changes
    3. The style is added to the Formatting Rule.
      1. If there is an existing style to be used, this can be selected from the dropdown.
  4. Save your changes.
  5. Close and reopen the Companies Form to ensure the new formatting rule is applied.
  6. Lock the screen. Now the field label is red.
  7. 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.

  • No labels