Hey there once again
I have this regex on my input to make sure it is an id:
^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$
it just works fine but i can’t validate and i’m really lost in all those valid validity ValidatableMixin etc. I have to validate it before i proceed on the next page or just to enable the next button.
i’m trying to put it on “Enter” keypress and it looks like this here.
export function input1_keyPress(event, $w) {
if (event.key === "Enter") {
if (!($w("#input1").valid)) {
$w("#SUBMITBUTTON").show();
}
}
}
I think we all know that it’s not working what should i do?
Please don’t forward me on API’s i just can’t get it.