sendForm

Description

This mobile device JSP function posts an HTML form and provides focus on a specific field on a subsequent JSP form. Three versions of syntax enable you to customize how data should display.

Syntax

public String sendForm(String formName, String focusField) throws Exception

public String sendForm(String formName, String focusField, boolean sendData) throws Exception

public String sendForm(YFCDocument formDoc, String focusField, boolean sendData) throws Exception

Input Parameters

formDoc - Required. Either formName of formDoc must be provided.

formName - Required. Either formName of formDoc must be provided.

focusField - Required. Form field where the focus must be transferred to in the invoked JSP.

sendData - Optional. Valid values: true and false.

Example

The following example shows how the sendForm function can be used so that the form corresponding to the YFCDocument ydoc is posted. On invocation of the subsequent JSP, the focus is transferred to the txtLocationId field and data is posted.
sendForm(ydoc, "txtLocationId", true)