pui.captureData()



This API captures input data from HTML content on the current screen and returns an object with name/value pairs. It can be used when Profound.js produces HTML output rather than Rich Display output. It is generally used in combination with the pui.submit() API.

All input tags on the page, including INPUT, SELECT, TEXTAREA, and BUTTON tags are analyzed. Values from elements that contain a “name” attribute are then captured and placed into the return object. For buttons, an initial value of "0" is used.