Hi,
I would like to use the before-save API to enable the unit to be saved only after accepting the regulations. The regulations are a boolen field.
I used the following function, but the unit can be saved even if you do not accept the regulations:
I would like to use the before-save API to enable the unit to be saved only after accepting the regulations. The regulations are a boolen field.
I used the following function, but the unit can be saved even if you do not accept the regulations:
HTML Code:
if (regulations == 'false') { recordService\throwBadRequest("Accept the regulations before saving"); }
Comment