Form extensions

Note

Only the properties that M-Business Anywhere has added to the Form object are listed below. For complete documentation of the standard features of the Form object, refer to JavaScript sources listed in Related publications.

M-Business Anywhere JavaScript properties
  • agsubmitDiscardResponse   Delete the response?

    Default: FALSE

  • agsubmitDisplayDefaultMessage   Display a default message when submitting offline?

    Offline default: TRUE

    Online default: FALSE

  • agsubmitHidden   Submission is hidden from the Forms Manager?

    Default: FALSE

  • agsubmitIncludeImages   Allow response to contain images?

    Offline default: TRUE

    Online default: from application preferences

  • agsubmitLinkDepth   Link depth of the response.

    Default: 0 (zero)

  • agsubmitMessage   Message text to display in an alert after submitting offline.

    Default: "" (empty string); no message displayed

  • agsubmitMultiple   Multiple offline submissions allowed?

    Default: TRUE

  • agsubmitOffsiteLinks   Allow response to contain offsite links?

    Default: TRUE

  • agsubmitSize   Maximum size of the response in multiples of 1K.

    Default: 100

Sample code

Here is sample code that uses the M-Business Anywhere Form extensions.

<form action=http://search.yahoo.com/bin/search
    agsubmitMessage=Thanks
    agsubmitOffsiteLinks=true
    agsubmitIncludeImages=true
    agsubmitLinkDepth=2
    agsubmitSize=200
    agsubmitDiscardResponse=true
    agsubmitMultiple=false
    agsubmitHidden=false
    agsubmitDisplayDefaultMessage=true>
          ...
    <input size=15 name=p><BR>
    <INPUT TYPE=submit VALUE="Search">
    <INPUT TYPE=reset>
</form>