Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Pattern or formula to add empty space in front of text field.

Avatar

Level 3

I need pattern when i write something in text field to make empty space at begining.

Thank you

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

You could use a display pattern, but it would get very long if your field allows many characters, so for a 4 character field you could use;

text{' 'X}|text{' 'XX}|text{' 'XXX}|text{' 'XXXX}

Regards

Bruce

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi,

You could use a display pattern, but it would get very long if your field allows many characters, so for a 4 character field you could use;

text{' 'X}|text{' 'XX}|text{' 'XXX}|text{' 'XXXX}

Regards

Bruce