최근 검색


최근 검색 없음

Ricky Bello's Avatar

Ricky Bello

가입한 날짜: 2021년 4월 15일

·

마지막 활동: 2021년 10월 27일

팔로잉

0

팔로워

0

총 활동 수

3

투표 수

0

플랜 수

2

활동 개요

님의 최근 활동 Ricky Bello

Ricky Bello님이 에 댓글을 입력함

커뮤니티 댓글 Q&A - Objects, workspaces, and rules

 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

댓글