cancel
Showing results for 
Search instead for 
Did you mean: 

Display a TEXTFIELD only in sebsequent page and not on first page in adobe

mahesh_jagnani
Participant
0 Kudos

Hi Expert,

I have a requirement in which i have to display a text field only on the subsequent pages and not on the first page in adobe form.

Can u plz help me.

Thanks

Mahesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mahesh,

I think you can handle it using javascript in the appropriate event.

var pageNum = xfa.layout.pageCount();
if (pageNum == 1){
    textField.presence = "hidden";
}

Let me know if you need more clarification.

Thanks & Regards,

Sanoosh

mahesh_jagnani
Participant
0 Kudos

Hi ,

This variable will contain the total number of page or the current page number?

Further if we want to hide a subform what we have to do?

Can u plz be little more explain.

Thanks & Regards,

Mahesh

Former Member
0 Kudos

Hi Mahesh,

I didn't notice the case with pageCount. Try the following script layout ready event.

var pageNum = xfa.layout.page(this);
if (pageNum == 1){
    textField.presence = "hidden";
}

Thanks & Regards,

Sanoosh

Answers (0)