- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
3 週間前
はじめまして。
現在、レコードプロデューサーを作成しているのですが、
「送信」ボタンの下に自分で作成したボタンを配置して、押下するとスクリプトが走るようにしたいです。
方法をご教授いただけますでしょうか。
解決済! 解決策の投稿を見る。
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
3 週間前
this should work and set the variable correctly if you are using correct variable name and the value
Remove line 5 and add these inside the function
var g_form = $scope.page.g_form || window.g_form;
if (g_form && g_form.setValue) {
g_form.setValue('u_subtotal', true);
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
3 週間前
追記です。
押下したときに、ログを吐かせる処理を追加したところ正常にログが吐き出されました。
しかし、相変わらずチェックを入れるという動作は動いていません。
エラー内容を確認したところこのようになっておりました。
TypeError: Cannot set properties of undefined (setting 'u_subtotal')
これは変数がウィジェット内で設定がされていないからエラーになったということでしょうか。
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
3 週間前
this should work and set the variable correctly if you are using correct variable name and the value
Remove line 5 and add these inside the function
var g_form = $scope.page.g_form || window.g_form;
if (g_form && g_form.setValue) {
g_form.setValue('u_subtotal', true);
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
3 週間前
最高です!!!!!できました!!!!!!ありがとうございました!!!!!
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
3 週間前
Glad to help.
Happy learning.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader