Reply
Highlighted
Member
Posts: 2
Registered: ‎11-16-2015

AcceptUI -Validate underlying form before modal opens

I am using AcceptUI modal form . I need to be able to validate the underlying form before calling AcceptUI.  Example at https://dev.heliasfoundation.org/content/forms/donations/annualfund/donate.aspx

 

Can I call AcceptUI via javascript rather than using AcceptUI as a CSS class?

Is there a call in AcceptUI.js that I can utilize to run a form validation and return a .isValid so the modal opens to finish the transaction.

 

Thanks in advance

Highlighted
Contributor
Posts: 22
Registered: ‎02-24-2020

Re: AcceptUI -Validate underlying form before modal opens

Why not make your own button that validates your form, then simulates 'click' or 'mousebuttondown' or something on thier button?

Highlighted
Member
Posts: 2
Registered: ‎11-16-2015

Re: AcceptUI -Validate underlying form before modal opens

Has to be a cleaner way out there than that....