Hiding the paypal payment integration field

  • adea
    Asked on December 10, 2020 at 8:34 PM

    I am using a field for people to enter an amount and then passing that info to a caluclated field. That calculated field is then passed on to the paypal payment integration field. Currently, if I type dollars and cents in the "how much do you want to contribute' field, it only show the dollars in the "Contribution amount" field unless I put in something greater than 0. For instance, if type 3.00 it displays as 3 in the 'contribution amount' field. If I put in 3.01, then it displays as 3.01 in the 'contribution amount' field. This leaves me with 2 questions.

    1). Is there a way to have the two digit decimals display in the 'contribution amount' field no matter what?

    2) is there a way to hide the 'contribution amount' field (it is the paypal payment integration field)? I tried to do it with a condition but when I did then it took me directly to the Thank You page and didn't prompt me for payment. I think it may be confusing for people to see 2 fields with the same amount.

    If you have any suggestions I am happy to hear it.

  • Kevin Support Team Lead
    Replied on December 10, 2020 at 10:34 PM

    Unfortunately, it's not possible to change the number of decimal places on the payment field, but you can inject this CSS code to hide the payment field amount and still charge the customer:

    [data-type="control_paypalSPB"] .form-sub-label-container, [data-type="control_paypalSPB"] .form-label {

      display: none !important;

    }

    This guide will help you to do so: https://www.jotform.com/help/117-how-to-inject-custom-css-codes

    If you have any questions, let us know.