Set form field to be required if inserting but not updating?

I am slowly building a new “HR Database” with Scriptcase. For a new employee (insert), I’d like to make the {starting_date} field required. However, when editing an existing employee, I do not want the field {starting_date} to be required. Essentially, for some employees, we simply don’t know or don’t care to look up their start date right now as we update other more useful data fields.

However, as we start to move forward, new employees need/require a start_date.

How can I handle this via scriptcase? I’m trying to avoid having two different forms to manage the same data on.

You can try onvalidate event your validation. using the macro:
if (sc_btn_new)
{My_Date} = date(‘Y/m/d’);