Mandatory inputs through code?

@russian-dima Everything is working as it should, the only thing that is necessary is that if the fields are not validated, no information is sent.