Hi,
I have tried in various ways but unable to figure how to show an error message ( same as shown in the picture with a box ) like that on custom registration corvid form using a lightbox.
Any ideas? See the picture below.
Hi,
I have tried in various ways but unable to figure how to show an error message ( same as shown in the picture with a box ) like that on custom registration corvid form using a lightbox.
Any ideas? See the picture below.
You’ll need to create a box like that using the Editor elements and set it to ‘hidden on load’
Then you can show it using an event. for example: run a check for the element’s validity on a button click and show it if invalid.
if($w("#element").valid === true) {
//
} else {
$w("#errorBox").show();
}
Thanks.
I thought of that but I was thinking whether there was anything out there that already does the job.
I guess there is no other way right?
Its the same logic of show error via #text
By the way do you think there is a way of showing the error in the input box itself?
Thanks again
You can only use the .value to display text in the input element but doing so will override whatever the user has written.
@shantanukumar847 Right okay thanks a lot!