cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript for Text/Image field presence

Former Member
0 Kudos

I have PDF form with a textfield and Image field on the Master page.

Both are designed with presence = Invisible.

I want the objects to become visible when User opens the form.

I put JS code in each of the objects on DocReady event:

this.presence = "visible";

Image field becomes visible but textfield stays invisible.

The form Layout type is set in in SPF as "Standard Layout".

IThe form is set to Interactive thru parameter ls_docparams-fillable = 'X'.

How I can change the textfield presence at the opening the form?

Thank you,

Tatyana.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member184619
Active Contributor
0 Kudos

Hi,

Write the code in layout ready event if your placing these objects in Master page.

use the code like:

imagename.presence = "visible";

textfieldname.presence = "visible";

Regards,

Sachin Dhingra

Former Member
0 Kudos

The problem was that I had console statement.

console.println("docready-event, txt field.");

this.presence = "visible";

I commented the console statement.

Now the presence statement gets executed and the object becomes visible.

Didn't know the consequences of having "console.println" in the code.

I know now!