Align String Text to Right
Application Type
Traditional Web

Hi All,


I want to set format text string to right align

Example:

I have Text String with 8 Index character, 1-6 Index fill "BATMAN", 7-8 Index fill free space or "  "

And I want change text to like this


Thanks,

Kane

mvp_badge
MVP
Solution

Hi Kane,

For the mentioned use case. You can use the in-built function called FormatText()


Based on the mentioned example, the expression value would be

FormatText(inputTextVar, 8, 8, True, "*")

Note: Replace the * with space character


See this sample screen: PaddingStringTask



I hope this helps you!


Kind regards,

Benjith Sam

Hi Kane,

For this, you select your container,

Click on below brush icon in top right corner of properties and after choose your align 

Thanks, Aadhavan S

Hi,

Not like that lol, what I mean is a text string to create a text file, not in UI


Thanks, Kane

mvp_badge
MVP
Solution

Hi Kane,

For the mentioned use case. You can use the in-built function called FormatText()


Based on the mentioned example, the expression value would be

FormatText(inputTextVar, 8, 8, True, "*")

Note: Replace the * with space character


See this sample screen: PaddingStringTask



I hope this helps you!


Kind regards,

Benjith Sam

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.