Expand my Community achievements bar.

html form with 2 pages

Avatar

Former Community Member
I have created a form with designer that has 2 pages.

In pdf, all works ok.

But when i render it to html, i only can display the first page.



How can i navigate between pages?



Thanks in advance
4 Replies

Avatar

Former Community Member
In the custom tab in designer there are navigation buttons that allow you to go next, previous, etc. You'll want to put them on your form and make sure the script on them is running on the server.



H.

Avatar

Former Community Member
Thanks for reply, but it doesnt work.



The script on server for the "next page" button is:

xfa.host.pageDown( );



So, a request to targetURL (initially my servlet to get the data) is done and a exception is thrown about xml.



What should be done in the servlet to change the page???

Avatar

Former Community Member
Hi,



If your rendering your form as HTML then you are probably using LiveCycle Forms. To navigate between pages you will have to create a IOutputContext object and assign it the value returned by the call to the EJBClient.processFormSubmission(...)in your servlet. You will then need to call the IOutputContext.getFSAction() method to determine what action was performed on the form. If the value returned by getFSAction() is 3 then the output of the processFormsubmission method is the Next page in the form. If the value is 4 then the output is the previous page in the form. If getFSAction returns either 3 or 4 then you can write just the data returned by the call to IOutputContext.getOutputContent() back to the web browser.



Trevor.