Get form field values in javascript execution block: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

15 April 2024

  • curprev 13:3613:36, 15 April 2024Smtxwiki talk contribs 325 bytes +325 Created page with "Example function to retrieve a value from a simple field in a request form var getFormField (formvalues, fieldname) { formvalues.filter(function(fld) { return fld.internallabel === fieldname }).map(function(fld) { return fld.value; }).join(""); } var fieldValue = getFormField(g_forminstance.values, 'fieldname');"