ServiceNow showFieldMsgの使い方のサンプル

関数名
showFieldMsg('フィールド名’,’メッセージ’,’タイプ’)
フィールド名 メッセージを表示させたいフィールド名
メッセージ フィールドの下に表示させるメッセージの内容
タイプ
以下の文言を入力してメッセージの枠の種類を指定する。
error:赤枠
info:青枠
warning:黄枠

サンプルコード

g_form.showFieldMsg('username','エラーフィールドメッセージです','error');
g_form.showFieldMsg('username','インフォメーションフィールドメッセージです','info');
g_form.showFieldMsg('username','警告フィールドメッセージです','warning');

 

ServiceNow

Posted by arkgame