Hi @rasso,
I’ve been wrapping my head around this for hours, and it’s THAT simple… Thank you!
However I don’t fully understand some parts of code you used:
acf.validation.toggle( $form, 'lock' );
(...)
acf.validation.toggle( $form, 'unlock' );
Where this comes from? I couldn’t find it in docs