How can I populate a quantity so that the quantity can't be changed by the user?

  • Profile Image
    MetroCathedral
    Asked on January 28, 2014 at 09:54 AM

    I want to have a single registration form so that only one registration can be completed per form. How can I make it such that the form won't allow the quantity to be changed by the user?

  • Profile Image
    Carina
    Answered on January 28, 2014 at 10:57 AM

    Hello,

    As you only wish to sell one item per form there is no need to have the quantity number field. So my suggestion is to hide that field. You can achieve this by injecting the following css code:

     

    #input_16_quantity_1002_0

    {visibility:hidden;}

     

    .form-sub-label {

    color: transparent;}

     

    #sublabel_prefix{

    color: #999999;}

    #sublabel_first{

    color: #999999;}

     

    #sublabel_last{

    color: #999999;}

     

    #sublabel_7_addr_line1{

    color: #999999;}

     

    #sublabel_7_addr_line2{

    color: #999999;}

     

    #sublabel_7_city{

    color: #999999;}

     

    #sublabel_7_state{

    color: #999999;}

     

    #sublabel_7_postal{

    color: #999999;}

     

    #sublabel_7_country{

    color: #999999;}

     

     

    Hope it works as you wish.

    Kindly let us know if you need more assistance.

     

    Regards

    Carina

  • Profile Image
    Carina
    Answered on January 28, 2014 at 11:03 AM

    By the way you can check here how to insert css in your form

    Regards