最近の検索
最近の検索はありません

Ricky Bello
参加日2021年4月15日
·
前回のアクティビティ2021年10月27日
フォロー中
0
フォロワー
0
合計アクティビティ
3
投票
0
受信登録
2
アクティビティの概要
バッジ
記事
投稿
コミュニティへのコメント
記事へのコメント
アクティビティの概要
さんの最近のアクティビティ Ricky Bello
Ricky Belloさんがコメントを作成しました:
We hide the Subject and Description and we're able to assign static values for them but we're trying something similar to what David has where the subject field is set upon the ticket submitted and populate the fields with actual data being submitted in the form. Here is the code we are using:
var ticketForm = location.search.split('ticket_form_id=')[1];
var subject_value = "New Email Request for " + $("request_custom_fields_1111111").val();
if(ticketForm == 2222222) {
$('#request_subject').val(subject_value);
$('#request_description').val(subject_value);
$('#request_subject').parent('.request_subject').hide();
$('#request_description').parent('.request_description').hide();
};
When I submit the form with that code, the subject and description just say "New Email Request for " and does not include the custom field data which is part of the form being submitted. I've tried different variations from what I've seen online to include single quotes, input# and even brackets and sometimes I get "New Email Request for undefined" or "New Email Request for [object Object]".
Any help in solving this is greatly appreciated. Thank you.
コメントを表示 · 投稿日時:2019年8月23日 · Ricky Bello
0
フォロワー
0
投票
0
コメント