cancel
Showing results for 
Search instead for 
Did you mean: 

change the font family of text field at runtime - Adobe form

Former Member
0 Kudos

Dear All,

We have a requirement as, while printing adobe form we need to switch the font family at runtime depending on a variable.

There is a variable field called BRAND_NAME. Based on the content of this variable we need to change the font family of all text fields.

We tried with few lines of jsp coding in the window but we were only able to change the font size not the font family.

Any help regarding this is apprecialted!!

Thanks in advance.

Regards,

Santhosini

Accepted Solutions (1)

Accepted Solutions (1)

rakesh_m2
Contributor
0 Kudos

Hi Santhosini,

Try using below script

if BRAND_NAME.rawValue = ' ' then

$.font.typeface = 'Verdana';

endif.

Thanks,

Rakesh

Answers (1)

Answers (1)

navip
Active Participant
0 Kudos

Hi Santhosini,

  To Achieve your requirement create two text modules and write FormCalc.

Eg:

Create two text modules. 1 and 2

Variable: BRAND_NAME

Write FormCalc as

If ($.xxxxx.BRAND_NAME == xxxxx) then

$.1 = "visible"

else

$.2 = "visible

endif

----

Naveen