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

javascript not working when pdf is rendered in the browser IE9


Level 1

I have a javascript on the initialize event of a field and it works fine when doing a Preview PDF but not when i render the PDF in the browser


if(F.Page_1.field1.rawValue == null)


           F.Page_1.field1.presence = "invisible";

           F.Page_1.field2.presence = "visible";


Can some one pelase help?


F.Page_1.field1::initialize - (JavaScript, client)

1 Reply


Level 10


The initialize event is supported in browsers, but the issue may be if the form is saved as a Dynamic XML Form in the save-as dialog in LC Designer. Or if you using LC Enterprise Suite to render the forms at runtime, if you have set the render in LC Designer: File > Form Properties > Defaults to Dynamic XML Form:

Parallels Desktop1.png

Changing an object's presence requires a dynamic form.