Basic principles of two-page application creation.
The first page representing the form and does the following:
- starts a form session with the ACE API using the
server
andauthkey
provided. - pulls down the form definition and submit it
- redirects to the results page once it submitted with such snippet:
.on('ace-submitted', function(e, form) { // set form busy marker again until page redirecting form.busy.set(); // redirect to results page window.location.assign('[url-for-second-page]' + window.location.search); })
The second page displays the results following the session created with form page (follow_session: true
).