How to set a default value for a field, to make a mandatory field non-mandatory

Hello Friends,

I am trying to hide a mandatory field by setting default value to it.

But I am not able to do that. It again shows the same error.

Is there any other way to set default value for the field?