Set an input as a required input with coding

Hello everyone,

Is there a way to turn/set an input as a required input by coding (as apposed to it by the editor)? if so, what is syntax for that.

Best,
Tal

https://support.wix.com/en/article/corvid-about-validating-user-input-with-code
https://support.wix.com/en/article/working-with-user-input-validation-in-the-settings-panel
https://www.wix.com/corvid/example/custom-validations
https://www.wix.com/corvid/reference/$w.ValidatableMixin.html
https://www.wix.com/corvid/reference/$w.TextInput.html

Thank you very much. I’ll check it out.