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.

Getting Number of Pages

Avatar

Level 1

Hi,

Is there anyway I can get total number of pages using Javascript?  this.numPages is not working.

I am developing dynamic form, where I need to print some pages only in odd page. Pageset properties are not working for dynamic form. So I thought of controlling the pages using Java script. Kindly throw some lights on it.

Regards

Selva

1 Reply

Avatar

Level 1

Thanks, I got the answer. xfa.host.numPages provides me the n

umber of pageas.