• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Center data in a Form Field

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Center data in a Form Field

    Grids allow centering of data in a field,

    image.png?

    but Forms do not (as far as I can tell).

    image.png

    Is there a way to center the data in a field? all of these fields would look better if they were centered under the label above like how a grid does. Any advice??

  • #2
    You would need to override the CSS for this.
    Likely,

    Code:
    input{
      text-align:center;
    }
    .widget-form .x-form-display-field-default{
       justify-content:center;
    }
    This post references how to override the CSS for an application.

    Comment


    • #3
      the link to the post gives a 402 forbidden error

      How would I apply this CSS to a specific field? I don't want all, just to be able to select a specific one in a form and center it.

      Comment


      • #4
        You cannot apply this to just one specific field.
        Trying the link again since it did not work in my previous post:
        When using SetResponse('formFieldDisable':'CONTACTEMAIL'); in my RPG, I see the intensity of the 'disabled' field is fairly light. Is there any way to increase the darkness of the label and data when the field is disabled? ? when the field is not disabled, it is significantly darker ? trying to keep disabled and enabled


        Comment


        • #5
          I should rephrase my last post....technically you could do this with a script but it would be ugly.

          Comment

          Working...
          X