Adding form validation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am adding form validation using
validate: function(actions) {
actions.disable(); // Allow for validation in onClick()
paypalActions = actions; // Save for later enable()/disable() calls
},
commit: true,
onClick: function(){
let val = validateForm(); //returns status from your Custom Validation Checkpoint
if (val){
paypalActions.enable();
}
else {
paypalActions.disable();
document.getElementById('error').classList.remove('hidden');
}
},
The problem I have is taht if the form is valid it enables the PayPAL Button but you have to click it again to go to PayPal. How do I similate the second click you you don't have to click twice?
Thanks

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- payment methods gone i cant send payments anymore i even added other forms in Payments Archives
- Technical Issues errors in Getting Started the 6 digit code failed to send to 2 phone #s signing up in PayPal Basics Archives
- Bug Report: Subscription (recurring cc payment) Surname requires to remove dots in initials in Payments Archives
- Account verification numbers in My Money Archives
- Amex card suddenly refuses to appear in PayPal Checkout list in My Money Archives