number box label behaves differently to text box label

  • Profile Image
    abbdhanani
    Asked on May 11, 2018 at 11:01 AM

    i have two fields, one is a text box and the other is a number box.


    i have set the form to hide labels (using placeholder text instead)


    however, for the number box the labels stay visible.

  • Profile Image
    Adrian
    Answered on May 11, 2018 at 11:15 AM

    You can hide all the question labels on your form by adding the following Custom CSS to your form.

    .form-label {
      display: none !important;
    }

    Help Guide: How-to-Inject-Custom-CSS-Codes

    If you want to hide the labels for textboxes and number fields only, use the following CSS instead.

    [data-type="control_number"] label,
    [data-type="control_textbox"] label {
      display: none !important;
    }

    You can also target specific labels to be hidden using ID selectors.
    Related Help Guide: How-to-Find-Field-IDs-and-Names