How can we format the text of our input field?

  • hilltopkennels
    Asked on August 7, 2015 at 4:23 AM

    I'm trying to change the format of the text in the field input area of {blah} to match the format of the label text of {shampoo1}

    Is this possible?

    Many thanks.

    Simon 

  • hilltopkennels
    Replied on August 7, 2015 at 5:16 AM

    Also, I need to make the field input area larger so it fills the whole column

  • hilltopkennels
    Replied on August 7, 2015 at 10:35 AM

    The label is set to <null> the field id is #id_227

    I only want to change the width of this one field, not all of them so the command you've supplied will not work

  • hilltopkennels
    Replied on August 7, 2015 at 10:36 AM

    Please could you also advise how I change the font size and colour for this field specifically as it is showing as black rather than white and needs to be made a larger point size

  • Ben
    Replied on August 7, 2015 at 11:39 AM

    The easiest way to change something on a single field, is to go into Form Designer and double click on that field.

    You will quickly see that you are no longer changing a class affecting all fields, but only that one single field instead.

    Now if you would like to do it manually, all you need is the field ID and since you happen to have it this is the code that would work:

    #id_227 input {} or #id_227 .form-textbox {} or even a combination of both:

    #id_227 input.form-textbox {
        min-width: 300px;
        color: white;
        font-size: 20px;
    }

    Just add it at the bottom of all the other code in your form's custom CSS field: Inject Custom CSS Codes

  • hilltopkennels
    Replied on August 7, 2015 at 1:57 PM

    that's great thx, also, how do i set it so that the text wraps within the box rather than overflowing?

  • Mike
    Replied on August 7, 2015 at 3:07 PM

    You can try adding the next properties to simulate the word wrap (single text box inputs are no designed for multi-line text).

    {
    word-wrap: break-word;
    word-break: break-word;
    }

    How can we format the text of our input field? Image 1 Screenshot 20

  • hilltopkennels
    Replied on August 7, 2015 at 3:11 PM

    that works fine, thanks