SubmitFormData Class
Contains methods to retrieve information on buttons and options selected in a preference form.
Use methods in the SubmitFormData class to retrieve the selected values in different form components:
The following are methods for SubmitFormData.
-
Returns the field ID of the button that was clicked in the preference form. For example, use this method to determine if the clicked button was Submit or Cancel.
-
Returns the value that was set for the specified field when the preference form was previously edited by the user. This method is used for field types such as picklist or radio buttons.
-
Returns a list of the string values that were set on a checkbox field when the preference form was previously edited by the user.
-
Returns the string value that was set on a field when the preference form was loaded. This method is used for field types such as text, and throws a TypeException if used with a field that can return more than one value, like a checkbox field.
-
Returns the string value that is currently selected for a picklist or radio button field in the preference form.
-
Returns a list of string values that are currently selected on a checkbox field in the preference form.
-
Returns the string value that was set on a field when the preference form was loaded. This method is used for field types such as text.
Returns the field ID of the button that was clicked in the preference form. For example, use this method to determine if the clicked button was Submit or Cancel.
public String getButtonClicked()
Type: String
Returns the value that was set for the specified field when the preference form was previously edited by the user. This method is used for field types such as picklist or radio buttons.
public String getOldSelectedValue(String fieldId)
- fieldId: Type: String Identifies a field in the preference form.
Type: String
Returns a list of the string values that were set on a checkbox field when the preference form was previously edited by the user.
public List<String> getOldSelectedValues(String fieldId)
- fieldId: Type: String Identifies a field in the preference form.
Returns the string value that was set on a field when the preference form was loaded. This method is used for field types such as text, and throws a TypeException if used with a field that can return more than one value, like a checkbox field.
public String getOldStringValue(String fieldId)
- fieldId: Type: String Identifies a field in the preference form.
Type: String
Returns the string value that is currently selected for a picklist or radio button field in the preference form.
public String getSelectedValue(String fieldId)
- fieldId: Type: String Identifies a field in the preference form.
Type: String
Returns a list of string values that are currently selected on a checkbox field in the preference form.
public List<String> getSelectedValues(String fieldId)
- fieldId: Type: String Identifies a field in the preference form.
Returns the string value that was set on a field when the preference form was loaded. This method is used for field types such as text.
public String getStringValue(String fieldId)
- fieldId: Type: String Identifies a field in the preference form.
Type: String