User Manual

10.04.2024

MANUAL

Developer Function: Server Script: context.Forms

## Overview The "[Server Script](/en/manual/table-management-server-script)" gets form information submitted by the user. ## Supported Versions 1. Pleasanter 1.1.28.0 or later 1. Pleasanter .NET Framework version 0.50.252 or later ## Properties |No|Name|Get|Set|Type|Description| |:----|:----|:----|:----|:----|:----| |1|Keys|Yes|No|KeyCollection|Collection of form element IDs| ## Method |No|Name|Description| |:----|:----|:----| |1|Item.get|Get form element value| |2|ControlId|Get source control ID| ## Usage Example 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()); ``` ## Related Information <div id="ManualList"><ul><li><a href="/en/manual/table-management-server-script">Table Management: Server Script</a><span>08.13.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />
TOP
このページをシェアする
記載された商品名、各製品名は各社の登録商標または商標です。 © Implem Inc.