Skip to main content
Level 5
July 10, 2024
해결됨

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

  • July 10, 2024
  • 2 답변들
  • 857 조회

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

이 주제는 답변이 닫혔습니다.
최고의 답변: koolForms

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

 

2 답변

koolForms답변
Level 3
July 10, 2024

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

 

aemuser001작성자
Level 5
July 11, 2024

Hi KoolForms,

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

Leena