Hi,
I have added a button control on list form. I am validating the form on button click using “fd.isValid” function.
I have added the form link in SharePoint quick link so that users can quickly find the form.
When I browse the form page first time then the validation works on form. But if I navigate to the page again from another page then it gives following error message.
Using "fd.isValid" is obsolete and only works with synchronous validators, please use "fd.validate()" instead
I tried to use the aync method and used fd.validate() as below. But the validate() method return false even I fill in required fields.
var v = await fd.validate();
if(v) { }
If I reload the browser page with ctrl+f5 then it works again.
How can I force synchronous validation in form?