Skip to content

$p.getControl

Overview

This is a description of the method to get elements from the target column name on the editing screen.
Use this when you want to output the ID name or value of the target column name.

Syntax

JavaScript
$p.getControl('Name of the column')

Usage Examples

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()
    }));
}