Comment 2 for bug 1807461

Revision history for this message
Bill Erickson (berick) wrote :

Indicating that a field is required in the auto-generated interfaces requires that the field be marked as required in the fm_IDL.xml file.

For example (from "Claim Type")

<field reporter:label="Code" name="code" reporter:datatype="text"/>

Should be:

<field reporter:label="Code" name="code" reporter:datatype="text" oils_obj:required="true"/>

This will not only indicate it's required but prevent the user from clicking "Save" when the field has no value.

There are likely quite a few fields in the IDL where this attribute should be added.

====

In the meantime... I will apply a patch to the auto admin interfaces to show a warning toast when item creation fails.