How to add extra spaces in a text field for better display?

I want more than one space to be inserted between two words in a text field. 

I have used below code, but it is not working.

a!textField(
label: "Approved: 5"& "                 Closed: 7",
readOnly: true()
)

I want to display the content in this way. Is there any way to do it.  

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    Hi as per my understanding, you want to display some extra spaces between label and value of a text field, where value is being shown in readOnly format.

    If so, then you can try contacting some whitespaces (fixed length of whitespace to maintain accuracy) using local!

    Example:

    a!textField(
    label: "Your label",
    value: concat(
    local! whitespace,
    ri!myValue
    )
    )

    Also, just a quick suggestion, this requirement doesn't follow the best practices criteria because Appian maintains some whitespaces between the label and value of a field OOTB hence maintaining custom whitespaces are not required. However depending on our requirement we can customise the SAIL code.


    Hope this may help.
Reply
  • 0
    Certified Lead Developer
    Hi as per my understanding, you want to display some extra spaces between label and value of a text field, where value is being shown in readOnly format.

    If so, then you can try contacting some whitespaces (fixed length of whitespace to maintain accuracy) using local!

    Example:

    a!textField(
    label: "Your label",
    value: concat(
    local! whitespace,
    ri!myValue
    )
    )

    Also, just a quick suggestion, this requirement doesn't follow the best practices criteria because Appian maintains some whitespaces between the label and value of a field OOTB hence maintaining custom whitespaces are not required. However depending on our requirement we can customise the SAIL code.


    Hope this may help.
Children
No Data