I have a two fields where the user is required to fill only one of them, while the other can be blank. He can also fill both, doesn't matter.
This can not be done with Knack itself (or I don't know how) so I have to resort to a simple custom javascript validation. If both fields are empty, I show an error message and stop the form submitting. And here is my problem. How can I prevent Knack from submitting the form manually? If I listen to the submit event and do a 'return false', it doesn't work. Since I can not see an action url in the form element, I am thinking Knack has it's own form submit logic. How can I capture that and stop it from submitting the form?
Thank you!