The first time I tried to save a content-node with this I wasn't allowed.
However, now it just lets me save even though I type in letters. The value ends up being null if it's not matching the regex - but I can still hit the Save button.
Im so confused as to how it worked once and now it's just not anymore.
How can I make sure it wont allow me to save when the pattern is incorrect?
Creating a property editor - how to validate before Save
I have the following js:
And the html:
The first time I tried to save a content-node with this I wasn't allowed.
However, now it just lets me save even though I type in letters. The value ends up being null if it's not matching the regex - but I can still hit the Save button.
Im so confused as to how it worked once and now it's just not anymore.
How can I make sure it wont allow me to save when the pattern is incorrect?
Already looked at this post: https://our.umbraco.com/forum/extending-umbraco-and-using-the-api/85517-custom-property-editor-input-type-number-doesnt-show-value
But it didn't really help
Did you ever figure out how to do this?
I'm looking to validate a form fields on submit.
is working on a reply...