Expand my Community achievements bar.

SOLVED

Text Field with Comb field border thickness issue

Avatar

Level 1

Hi,

I have created a form with text fields set as a comb of characters. when I save the pdf as a static pdf, the border gets thicker like the screenshot below.

I have tried to change xml source to make thin border by adding <edge thickness="0.01mm"/>, but it didn't work.

If I save the file as a dynamic xml form, the border is thin as expected. Please help me to figure this out.

I want thin border on a comb field on static pdf format.

Thank you for your help in advance.

comb.jpg

1 Accepted Solution

Avatar

Correct answer by
Level 10

There seems to be a limitation of how a date, number or text fields widget renders the border thickness in static forms. The only way I see is to hide the widget borders and place a set af rectangle behind the field, with the desired thickness.

<ui>

    <textEdit hScrollPolicy="off">

   <border hand="right">

         <edge thickness="0.635mm" presence="hidden"/>

      </border>

      <margin/>

      <comb numberOfCells="5"/>

   </textEdit>

</ui>

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

There seems to be a limitation of how a date, number or text fields widget renders the border thickness in static forms. The only way I see is to hide the widget borders and place a set af rectangle behind the field, with the desired thickness.

<ui>

    <textEdit hScrollPolicy="off">

   <border hand="right">

         <edge thickness="0.635mm" presence="hidden"/>

      </border>

      <margin/>

      <comb numberOfCells="5"/>

   </textEdit>

</ui>