Skip to content

Commit 5489f27

Browse files
committed
Hide the submit button on webform as it's triggered automatically
1 parent bd54bf9 commit 5489f27

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Metadata/js/omnipay_PaypalRest.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212

1313
onInit: function(data, actions) {
1414

15+
// On webform, hide the submit button as it's triggered automatically
16+
if (CRM.$('[type="submit"].webform-submit').length !== 0) {
17+
$('[type="submit"].webform-submit').hide();
18+
}
19+
1520
$('[type="submit"][formnovalidate="1"]',
1621
'[type="submit"][formnovalidate="formnovalidate"]',
1722
'[type="submit"].cancel',

0 commit comments

Comments
 (0)