1
0
-1

How can I dynamically update the Payment Total property on the Payment Type Selector component? Use case: Option A - Payment total is $50, Option B - Payment total is $100.

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      It's currently set up to set the payment total in the system data block of the submission only once, when the component is loaded. You can reset it, but its a bit of a mouthful:

       

      Form.items.yourPaymentSelectorIdGoesHere.properties.paymentTotal = newAmount;

      Form.data.SFMData.PaymentDetails.Payment.Total = newAmount;

       

      If you raise a JIRA we can enhance this to be more easily assignable.

        CommentAdd your comment...