User Manual

08.14.2024

MANUAL

Developer Function: Script: $p.getControl

## Overview This is a description of the method to get elements from the target item name __on the editing screen__. Use this when you want to output the ID name or value of the target item name. ## Syntax ##### JavaScript ``` $p.getControl('Name of the field') ``` ## Usage Example Set the following sample code in the Pleasanter script, set the output destination to "Edit", and then move to the edit screen. ##### JavaScript ``` $p.events.on_editor_load = function () { $p.setMessage('#Message', JSON.stringify({ Css: 'alert-success', Text: $p.getControl('Title').val() })); } ```
TOP