Community Forums 

Main Content

WordPress integration - issue with maxlength

    Jan 29 2014 16:26:27

    #1

    cef

    Join date : 2010-05-04      Posts : 9

    I've been mostly successful with a handful of clients when I put the Mal's code into WordPress however, when I use this code, my quantity box is super long (even tho I specify it to be 3 characters).

    Any ideas how to fix (I just brought this code over from an html site where it worked perfectly):

    <form action="http://ww6.aitsafe.com/cf/add.cfm"; method="post">
    Qnty: <input type="text" size="2" maxlength="3" id="qty" name="qty" value="1">
    <input name="userid" type="hidden" value="xxxxxxxx">
    <input name="product" type="hidden" value="xxxxxx">
    <input name="price" type="hidden" value="17">
    <input name="units" type="hidden" value="1">
    <input type="submit" value="Buy Now!">
    </form>



    Jan 29 2014 16:49:51

    #2

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    maxlength only stops how many characters can be entered in the text box. size is the length of the text box on the page.

    Debbie Q

    Mal's Support: www.mals-e.com/support.php
    GT's Forms and examples: www.malsforms.com
    Helpful java scripts: www.gemasana.com/mals
    Shipping help documents: www.stoner.org.uk/mals

    My Create-A-Book Publishing - mycreateabook.com
    Personalized Books, Music CDs and Gifts for all ages and occasions.

    Please help me out and share my site on your networks.




    Jan 29 2014 18:46:34

    #3

    cef

    Join date : 2010-05-04      Posts : 9

    Sorry - yes, I meant size. It's showing to be super long and not just 2 or 3 as specified. Any ideas?

    Here is the page:
    http://www.bigkidscience.com/site/autographed-book-shop/



    Jan 30 2014 00:05:25

    #4

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    Looks like the width might be set in your stylesheet.

    Debbie Q

    Mal's Support: www.mals-e.com/support.php
    GT's Forms and examples: www.malsforms.com
    Helpful java scripts: www.gemasana.com/mals
    Shipping help documents: www.stoner.org.uk/mals

    My Create-A-Book Publishing - mycreateabook.com
    Personalized Books, Music CDs and Gifts for all ages and occasions.

    Please help me out and share my site on your networks.




    Jan 31 2014 01:00:05

    #5

    Nate

    Join date : 2010-05-20      Posts : 28

    This might be it:

    In jumpstart/framework/assets/plugins/bootstrap/css/bootstrap.min.css

    input, textarea, .uneditable-input {
    width: 206px;