Skip to content

context.Forms

Overview

The "Server Script" gets form information submitted by the user.

Properties

No Name Get Set Type Description
1 Keys Yes No KeyCollection Collection of form element IDs

Methods

No Name Description
1 Item.get Get form element value
2 ControlId Get source control ID

Usage Examples

The following example enumerates the IDs of form elements submitted by the user and outputs the IDs and values ​​to the log.

JavaScript
for (let key of context.Forms.Keys){
    context.Log(key + ': ' + context.Forms.Item.get(key));
}

The following example logs the IDs of the elements used by the user when submitting the form.

JavaScript
context.Log(context.Forms.ControlId());

Supported Versions

  1. Pleasanter 1.1.28.0 or later
  2. Pleasanter .NET Framework version 0.50.252 or later