What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    adding icons at beginning of credit card fields (using stripe)

    Asked by gyangting on August 23, 2014 at 05:04 PM

     

    Hi,

    I need to add small icons at the beginning of fields, as here: http://screencast.com/t/0XsLNhrC

    Can you help me achieve that?

    Thanks,

    Guy

    credit card credit card fields
  • Profile Image

    Answered by gyangting on August 23, 2014 at 05:07 PM

    Also, my customers are on mobile primarily, so I need icons to work on mobile.

    Thanks,
    Guy

  • Profile Image
    JotForm Support

    Answered by Welvin on August 24, 2014 at 12:46 AM

    Hi Guy,

    You can inject a custom CSS codes to your form to do that. For the Credit Card Number input:

    .form-textbox.cc_number {

    background-image: url('http://www.jotform.com/icon/cc.png');

    background-repeat: no-repeat;

    padding-left: 20px;

    }

    Change http://www.jotform.com/icon/cc.png to your actual credit card icon.

     

    The same codes for the CVV input:

    .form-textbox.cc_ccv {

    background-image: url('http://www.jotform.com/icon/cc.png');

    background-repeat: no-repeat;

    padding-left: 20px;

    }

    Still, change the URL of the icon.

    Here's a guide on how to inject a custom CSS to the form: http://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes

    Thank you!

  • Profile Image

    Answered by gyangting on August 24, 2014 at 04:42 AM

    Thanks Welvin. This put me on the right track to get what I wanted!

    I just had to add background-position: 7px 7px to position the icon where I wanted.

    Perfect now!

    Great support!

    Guy