Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Scripting width on Date field in HTML form livecycle

Level 1
Level 1


So i have a PDF form which i want to render on a server as a HTML form. My only problem is that when it's rendered as HTML i want to expand the width of a Date field because of the icon (Red/Gray calendar thingy) that shows up when it's HTML. So on initialize on the field i've scripted:

if( == "HTML 5") {

     date_field.w = "36mm";


else {

     date_field.w ="21mm";


But this wont work. It seems it is impossible to change the Width with script. Allthough according to the Livecycle documentations it should be possible.

I dont want to have multiple fields and show or hide them, i would like to do this as dynamical as possible.

Any ideas or tips? Is it possible to "turn off" the icon that shows up when it's rendered as HTML?

0 Replies