Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejavascript
// Submit first and last name to the backend
pui.submit({ "firstName": get("firstName"), "lastName": get("lastName") });
 
// Capture input data from HTML content and submit to Node.js
pui.submit();
 
// Capture input data from HTML content, set *in03 to "1", and then submit to Node.js
pui.submit("*in03"); 
 
// Capture input data from HTML content, set "exit" flag to "1", and then submit to Node.js
pui.submit("exit"); 
 
// Capture input data from HTML content, set the "option" field to "5", and then submit to Node.js
pui.submit(“option”"option", “5”"5");
 
// Capture input data from HTML content, set multiple additional fields, and then submit
var data = pui.captureData();
data.status = get("status");
data.flag = get("flag");
pui.submit(data);

...