'Custom validation in lwc for save and new button?
I want access save and new button in lwc. I have created a custom popup, save and new functionality is not working.
JS code-
saveAndNewClick(event) {
// this.redirect = false;
// this.template.querySelector(".requiredfield").submit(this.inputs);
// this.resetpage = true;
saveClick();
handleReset();
}
handleReset() {
var input = this.template.querySelectorAll(".inputs");
if (input) {
input.forEach((input) => {
input.reset();
});
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
