We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f9ec59 commit c4409b3Copy full SHA for c4409b3
1 file changed
src/server/plugins/engine/models/FormModel.ts
@@ -470,6 +470,15 @@ export class FormModel {
470
}
471
472
473
+
474
+ // Check Payment component - only one allowed per form
475
+ const paymentComponent = page.collection.fields.find(
476
+ (field) => field.type === ComponentType.PaymentField
477
+ )
478
+ if (paymentComponent) {
479
+ const fieldVal = paymentComponent.getFormValueFromState(context.state)
480
+ return fieldVal === undefined
481
+ }
482
483
484
private fieldStateIsInvalid(
0 commit comments