color Text Field in Appian v1 7.3

Hi everyone, I saw in Appain 17.3 Release Note a box layout,

where I found a RED color Text Field inside the box component,

do you know the expression to do so? 

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    You can use the new a!boxLayout() sail component. The "Style" parameter determines the color of the text. In your case, you would use "ERROR" for red text.

    IE:

    a!boxLayout(

     label: "Sorry! There was a problem with your order",

     style: "ERROR",

     contents: {

       a!textField(

         labelPosition: "COLLAPSED",

         value: "Your credit card could not be charged.",

         readOnly: true

       )

     }

    )

Reply
  • 0
    Certified Lead Developer

    You can use the new a!boxLayout() sail component. The "Style" parameter determines the color of the text. In your case, you would use "ERROR" for red text.

    IE:

    a!boxLayout(

     label: "Sorry! There was a problem with your order",

     style: "ERROR",

     contents: {

       a!textField(

         labelPosition: "COLLAPSED",

         value: "Your credit card could not be charged.",

         readOnly: true

       )

     }

    )

Children