Expand my Community achievements bar.

SOLVED

AEM Designer 6.5 - XDP Template - Auto text resize in fixed input field

Avatar

Level 5

Hi,

Is there a property setting for the Text Field that will auto resize/reduce the font size to allow more letters to be entered in the fixed 'Limit Length to Visible Area'. I see that this is possible in adobe static PDF. Is this possible in XDP template when it is rendered as HTML5 form using a browser?

Is there an alternate solution to have the same result?

Thanks in advance for the response.

Leena

1 Accepted Solution

Avatar

Correct answer by
Level 3

Leena,

There is a way to do this, but it is not advisable.

To get the font to change size so the field can accept more characters after you have filled the field:

  1. Select the field.
  2. Click on the XML Source tab at the top of the Design area.
  3. In the XML of the object find the font and then the font size.
  4. Change the current font size to "0pt".
  5. Click back to the Design View.

If you test this you will see the text shrink as you add more and more characters. The downside is that it can become unreadable.

It would be best to set a character limit on the field so that you halt the entry of characters and thus the shrinkage.

From a forms development and forms management perspective allowing unlimited characters in a fixed width field should be avoided. Either allow the field to expand horizontally, vertically. Alternatively, you should identify the max characters required to fulfill the data requirements of that field and design the form to accommodate those max characters.

 

Regards

 

View solution in original post

2 Replies

Avatar

Correct answer by
Level 3

Leena,

There is a way to do this, but it is not advisable.

To get the font to change size so the field can accept more characters after you have filled the field:

  1. Select the field.
  2. Click on the XML Source tab at the top of the Design area.
  3. In the XML of the object find the font and then the font size.
  4. Change the current font size to "0pt".
  5. Click back to the Design View.

If you test this you will see the text shrink as you add more and more characters. The downside is that it can become unreadable.

It would be best to set a character limit on the field so that you halt the entry of characters and thus the shrinkage.

From a forms development and forms management perspective allowing unlimited characters in a fixed width field should be avoided. Either allow the field to expand horizontally, vertically. Alternatively, you should identify the max characters required to fulfill the data requirements of that field and design the form to accommodate those max characters.

 

Regards

 

Avatar

Level 5

Hi KoolForms,

Thanks for the response and I fully agree with your suggestions.

Leena