how to validate if there's already a field with the same registered number (Logical problem)

how to validate if there's already a field with the same registered number (Logical problem) Problem Description: (https://i.stack.imgur.com/52C98.png) I can’t let the user enter a code that already exists in the database,so i need to make one more validation for this field "code". obviously I have to use a ‘if statement’ but i just can’t … Read more

Where to put e.preventDefault() in my javascript validation?

Where to put e.preventDefault() in my javascript validation? Problem Description: I’ve spent the past few days trying to figure this out without success. I’m wanting to only preventdefault if it fails. I’m assuming the form wont submit because it’s preventdefault either way. Thanks. form.addEventListener("submit", (e)=>{ e.preventDefault(); engine(username, 0, "Name cannot be blank"); engine(email, 1, "Email … Read more

Where to put e.preventDefault() in my javascript validation?

Where to put e.preventDefault() in my javascript validation? Problem Description: I’ve spent the past few days trying to figure this out without success. I’m wanting to only preventdefault if it fails. I’m assuming the form wont submit because it’s preventdefault either way. Thanks. form.addEventListener("submit", (e)=>{ e.preventDefault(); engine(username, 0, "Name cannot be blank"); engine(email, 1, "Email … Read more

Where to put e.preventDefault() in my javascript validation?

Where to put e.preventDefault() in my javascript validation? Problem Description: I’ve spent the past few days trying to figure this out without success. I’m wanting to only preventdefault if it fails. I’m assuming the form wont submit because it’s preventdefault either way. Thanks. form.addEventListener("submit", (e)=>{ e.preventDefault(); engine(username, 0, "Name cannot be blank"); engine(email, 1, "Email … Read more

How to check if all required fields are filled to enable submit button?

How to check if all required fields are filled to enable submit button? Problem Description: I’m trying to validate multiple required fields. This code currently works for at least one required field is filled out, but I don’t know how to make it work so that it works for all required fields. Could someone help … Read more

How to check if all required fields are filled to enable submit button?

How to check if all required fields are filled to enable submit button? Problem Description: I’m trying to validate multiple required fields. This code currently works for at least one required field is filled out, but I don’t know how to make it work so that it works for all required fields. Could someone help … Read more

How to check if all required fields are filled to enable submit button?

How to check if all required fields are filled to enable submit button? Problem Description: I’m trying to validate multiple required fields. This code currently works for at least one required field is filled out, but I don’t know how to make it work so that it works for all required fields. Could someone help … Read more

Angular Cross-field validation on Dynamic Form

Angular Cross-field validation on Dynamic Form Problem Description: I built a dynamic reactive form that reads a json file (or just json in general) and renders the form elemtns for the user here. https://stackblitz.com/edit/angular-empty-project-qzjttt?file=app%2Fapp.component.ts … I’ve been trying to figure out the best way to validate the three dates in the form where the first … Read more

Angular Cross-field validation on Dynamic Form

Angular Cross-field validation on Dynamic Form Problem Description: I built a dynamic reactive form that reads a json file (or just json in general) and renders the form elemtns for the user here. https://stackblitz.com/edit/angular-empty-project-qzjttt?file=app%2Fapp.component.ts … I’ve been trying to figure out the best way to validate the three dates in the form where the first … Read more

We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.
Accept
Reject