HDAPIPostAnswersToServer Method |
This function posts the current answer collection from the interview to the server. The browser interview
calls this function internally when the user clicks the Save Answers button during the interview.
It may also be invoked from 3rd party code, if (during the course of an interview) you need to post
the current answer set to some URL and (optionally) display a server-returned response to the user.
JavaScript API: Direct
Assembly: api.js Version: 1.0.0.0 (1.0.0.0)
Syntax
JavaScript
function PostAnswersToServer(postUrl, pageTitle, fieldArray, bShowResponse);
Parameters
- postUrl
- Type: SystemString
The URL of the page on the server to which the answers will be posted. - pageTitle
- Type: SystemString
The title of the page on which the server's response is displayed. (Default: 'Server Results') - fieldArray
- Type: SystemObject
An associative array of strings to be posted to the server. HotDocs Server adds the interview's answers to this array if it is specified, or it creates a new array if you omit it. - bShowResponse
- Type: SystemBoolean
Indicates whether or not the response will be displayed. (Default: true)
Remarks
Whenever PostAnswersToServer is called, the browser interview first calls the PreHDSubmit event handler (if you have registered for it in your code).
See Also