Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

javascript not working when pdf is rendered in the browser IE9

Avatar

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?

Thanks,

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

1 Reply

Avatar

Level 10

Hi,

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.

Niall