0

I am stuck in a issue where i have to add custom validation on fields in lightning:recordEditForm. I am using the onsubmit method of lightning:recordEditForm to check the fields values and if the validation fails i am using event.preventDefault() to stop the form from submission.however once i use the event.preventDefault() i am not able to submit the form again. i have also tried the js submit() method which submits the form but it does not fires the onsubmit() method of the recordEditForm (i want the onsubmit() method of the form to be called because i can get the fields values there easily).

2
  • 1
    Have you taken a look at this answer almost on the same requirement? – Jayant Das Aug 3 '18 at 13:11
  • Yes,but as i mentioned i want the onsubmit() method of the form to be called but using js submit() method does not fires the onsubmit() method. – Rohan Deoskar Aug 3 '18 at 14:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.