How to base set selection on another field when based-on field has no selection specified
I am attempting to restrict use of a numeric field by values for a related date, if a value for another date have been selected, but if no selection exist for that referenced date field, then selection for the related date field should be ignored.
Thus, if the user have selected a value for "RunStart_YrMo_PMCells", and there be "serial_number" values for that value in the date field "RunStart_YrMo_num" that is related to "serial_number", I get results.
However, if the user have not specified any selection for "RunStart_YrMo_PMCells", I want there to be no constraint. The code above returns nothing in this case, rather than everything.