Hi @mldardy, you’re always calling event.preventDefault()
regardless of whether the validation fails or not; so you’ll either prevent the default only when there is no title, or submit()
the form programmatically otherwise.
BTW why not use the native constraint validation by just adding a required
attribute?
<input
id="title"
type="text"
asp-for="Title"
name="title"
class="form-control"
required
/>