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


History

VersionStatusNotes
10.2No ChangeCarried over from Panorama 6.0.