PageSpan Issue in HTML5 Forms | Community
Skip to main content
pranaym48551345
Level 3
May 17, 2022
Solved

PageSpan Issue in HTML5 Forms

  • May 17, 2022
  • 3 replies
  • 1369 views

Hi All, I am working on a HTML5 form which has 2 subforms. I am trying to use the code to get the total number of pages  each specific subforms, but i am unable to get the number. However the same code is working fine for PDF form but not working for HTML5 form. 

 

Can someone Please assist on the below issue as i have tried everything but none of the scripts seems to be working.

Code:

xfa.layout.pageSpan(form.subform1); - I am using the below code on the ready:Layout event to get the total number of pages for subform1 in HTMl5 form.

form.Masters.M1.#area[0].PageCount::ready:layout - (JavaScript, both)
this.rawValue = xfa.layout.pageSpan(form.subform1);

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mayank_Gandhi

@pranaym48551345 PDF has pages while HTML form is a single container with a scroll. So this will not work and is working as designed. 

3 replies

Mayank_Gandhi
Adobe Employee
Mayank_GandhiAdobe EmployeeAccepted solution
Adobe Employee
May 17, 2022

@pranaym48551345 PDF has pages while HTML form is a single container with a scroll. So this will not work and is working as designed. 

pranaym48551345
Level 3
May 17, 2022

Hey Mayank,

 

Just wanted to understand if this is a product related issue or a form related issue and also is there is any alternate or any possible solution, because the same script is working in AEM 6.3.

 

Thanks

Pulkit_Jain_
Adobe Employee
Adobe Employee
May 17, 2022

@pranaym48551345 

This seems to be one of the corner cases wherein the Designer script is not working on HTML5 form while it works fine with a PDF form.

I understand that you can't use pagecount function for known reasons so feel free to report this issue via a support ticket for further investigation by the product team.

 

pranaym48551345
Level 3
May 17, 2022

Hey Pulkit,

 

Just wanted to understand if this is a product related issue or a form related issue and also is there is any alternate or any possible solution, because the same script is working in AEM 6.3.

 

Thanks

Pulkit_Jain_
Adobe Employee
Adobe Employee
May 18, 2022

@pranaym48551345 

Seems to be a product-related issue but we can check further once we get the artifacts from the support ticket.

Mayank_Gandhi
Adobe Employee
Adobe Employee
May 17, 2022

@pranaym48551345 if it's working on 6.3, then log a product bug to support team and they will check and confirm