Make dialog box fields mandatory

Issue

Defining a dialog box field as "mandatory" only works for some types of fields. For example, it works for a text field, but it does not work for other types, like date.

Solution

Additional information

Currently, "mandatory field" applies to text fields only.