How can I get the Paypal total to display the decimal places and a dollar sign?

  • Profile Image
    hughdal
    Asked on June 19, 2015 at 11:33 AM
  • Profile Image
    Ben
    Answered on June 19, 2015 at 01:05 PM

    You are actually already getting the decimal places shown in it, but due to the style that you have added to the form, it is not showing the entire amount - you would see it if you had set the prices higher and expected a 3 digit number in there.

    What I would suggest is to just add the following code to your forms Custom CSS code:

    #input_7_donation {
        width: 70px;
    }

    This code will make it a bit larger and in the same time show the decimal places.

    Now to show the dollar sign before the amount we would need to be tricky and I just know the code for that:

    #cid_7 > span:before {
        content: "$";
        left: 17px;
        position: relative;
        top: -1px;
    }

    This code will add the $ right before the actual amount in the number while it will not cause any issues with the actual payment amount as it is actually not there with it - we just make it seem as if it is.

    You can add both styles to your jotform by following the steps here: Inject Custom CSS Codes just remember to add the codes above at the very end of that field - after all the other code.

    If you wish you can also just clone this form instead: http://form.jotformpro.com/form/51695293594974

    You can do that by following these steps: How to Clone an Existing Form from a URL

  • Profile Image
    slombardo
    Answered on February 11, 2016 at 05:39 PM

    Hi,

     

    I'm having the exact same problem but the second part of the code doesn't work. I already have the following code in the custom CSS to increase the width but I need the $ and commas after the thousands.

    input[id*="_donation"] {

    width: 75px

    }

     

    Thanks.

  • Profile Image
    Chriistian
    Answered on February 12, 2016 at 01:26 AM

    To better assist you with your issue, I have moved your concern to another thread. Your issue will be answered on that thread. Simply follow this link: http://www.jotform.com/answers/770674 
    Regards.