survey-controller

Methods

(inner) _renderWebform(req, res, next, options)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest
res module:api-controller~ExpressResponse
next function

Express callback

options object

Options passed to render

(inner) edit(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest
res module:api-controller~ExpressResponse
next function

Express callback

(inner) offlineWebform(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest
res module:api-controller~ExpressResponse
next function

Express callback

(inner) preview(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest
res module:api-controller~ExpressResponse
next function

Express callback

(inner) redirect(req, res, next)

Source:

This serves a page that redirects old pre-2.0.0 urls into new urls. The reason this on the client-side is to cache the redirect itself which is important in case people have bookmarked an offline-capable old-style url and go into the field without Internet.

Parameters:
Name Type Description
req module:api-controller~ExpressRequest
res module:api-controller~ExpressResponse
next function

Express callback

(inner) single(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest
res module:api-controller~ExpressResponse
next function

Express callback

(inner) view(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest
res module:api-controller~ExpressResponse
next function

Express callback

(inner) webform(req, res, next)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest
res module:api-controller~ExpressResponse
next function

Express callback

(inner) xform(req, res, next)

Source:

Debugging view that shows underlying XForm

Parameters:
Name Type Description
req module:api-controller~ExpressRequest
res module:api-controller~ExpressResponse
next function

Express callback