Can a reference be optional? Can an enum accept any value?

I'm making an asset management tool.  A list of Maintenance Logs have some tasks, status, completion date, etc.  Some maintenance logs are generated automatically, based on another list of recurring maintenance schedules.  Other Maintenance Logs can be added ad hoc as maintenance occurs.  When a maintenance log is generated based on a recurring schedule, I would like a reference to that schedule included in the Maintenance Log.  However, if an ad hoc log is created, there is no value for the schedule ref field.  So, sometimes the ref field would have a value and other times it would not.  

This would work fine for me.  However, when the ref field is blank, a yellow warning triangle appears beside the label field whenever the logs are displayed in a list.  There doesn't seem to be any way to indicate that a ref field is optional nor a way to suppress the yellow triangles.  Can the yellow icons be suppressed or ref fields be set as optional?

As a workaround, I tried turning the ref field into a enum field, using the appropriate list of schedule names as selectable values.  However, that generates an error when the value turns out not to be included in the list of configured values for the enum.   Can enums be configured to accept any value? 

It seems like the only workable workaround will be to populate a text field with the schedule record id.  Workable, but not ideal.  

 

0 2 94
2 REPLIES 2
Top Labels in this Space