webformmissingfields(
TEMPLATE
)
The webformmissingfields( function lists required fields that were not been entered into a web form.
Parameters
This function has one parameter:
template – specifies how the list should be formatted. If left blank, the list is carriage return separated. Otherwise the template may include text, punctuation, and/or HTML tags and must include the tag <field>
where the field name is to appear.
Description
This function lists required fields that were not been entered into a web form (and thus are “missing”). This function is designed to be used in conjunction with the WebFormToDatabase statement. The parameter is a template which specifies how the list should be formatted. If left blank, the list is carriage return separated. Otherwise the template may include text, punctuation, and/or HTML tags and must include the tag <field>
where the field name is to appear. For example, for a comma separated list use “,”. To list each field on a separate line use "<field><br>" or "<field><p>"
.
Let’s look at some realistic examples of formulas using the webformmissingfields( function. To display a bulleted list of missing fields, use this formula.
"<ul>"+webformmissingfields("<li><field>")+"</ul>"
This formula will create a comma separated list of the missing field names.
commastr(webformmissingfields("<field>"),cr())
This formula will create a one column table listing the missing fields.
"<table border=1>"+
webformmissingfields("<tr><td><field></td></tr>")+
"</table>"
This formula will list each missing field name on a separate field (if rendered into HTML, the names will appear on the same line, separated by a space).
webformmissingfields("")
See Also
- deletewebtemplate -- deletes the web template (a dictionary) associated with a form (if any).
- getwebtemplate -- retrieves the web template (a dictionary) associated with a form (if any).
- getwebtemplate( -- retrieves the web template (a dictionary) associated with a form (if any).
- getwebtemplatetext -- retrieves the text of the web template (a dictionary) associated with a form (if any).
- getwebtemplatetext( -- retrieves the text of the web template (a dictionary) associated with a form (if any).
- grabwebformitems -- grabs multiple web form items and stuffs the values into fields and/or variables.
- listwebtemplates -- retrieves a list of web templates in the specified database, if any.
- listwebtemplates( -- retrieves a list of web templates in the specified database, if any.
- makeformwebtemplate -- converts a Panorama form into the equivalent HTML/CSS.
- renderwebform -- renders a Panorama web form into HTML, merging data into the template as necessary.
- renderwebform( -- renders a Panorama web form into HTML, merging data into the template as necessary.
- retrywebform -- retries a web form that has missing or invalid data.
- savewebtemplate -- saves a web template (a dictionary) associated with a form.
- sethiddenwebformitem -- adds a hidden field to a form on a web page.
- webdatabasetoform -- fills in an HTML form with database field values.
- webfontsubstitutes -- generates an array of standard font substitutions for web browsers.
- webformallitems( -- returns a list of POST parameters passed from a form to the web server as a carriage return separated list.
- webformerrors( -- returns a list of errors that have been collected with the WebFormItemCheck statement.
- webformhiddenitems( -- returns a list of the hidden items in the web form submitted to this web procedure.
- webformitembang -- sets the text generated by the webformitembang( function.
- webformitemnames -- returns a list of POST parameters passed from a form to the web server as a carriage return separated list.
- webformitemnames( -- returns a list of POST parameters passed from a form to the web server as a carriage return separated list.
- webformitems( -- returns a list of POST parameters passed from a form to the web server, including both visible and invisible items (but excluding the special items Panorama generates for its own internal use).
- webformmerge -- fills in an HTML form with database values (fields and variables).
- webformrecordid -- adds a RECORD_ID hidden field to the HTML of a web form.
- webformselection -- selects data based on input from a web form. The web form must have fields that match the database fields.
- webformtodatabase -- updates the current database with information from the web form that was just submitted.
- webformvisibleitems( -- returns a list of the visible items in the web form submitted to this web procedure.
- webmerge -- merges an external HTML template file with fields and variables from the current record.
- webthisrecordkey -- makes a key for use with the WebURLSelect statement to specify the current record.
History
10.2 | No Change | Carried over from Panorama 6.0. |