Recent searches
No recent searches

Daniel Zhou
Joined Nov 08, 2023
·
Last activity Nov 09, 2023
Following
0
Followers
0
Total activity
3
Vote
1
Subscription
1
ACTIVITY OVERVIEW
BADGES
ARTICLES
POSTS
COMMUNITY COMMENTS
ARTICLE COMMENTS
ACTIVITY OVERVIEW
Latest activity by Daniel Zhou
Daniel Zhou created a post,
Hi,
I have a field "Partner Name" in the form (https://possibilitylabs.zendesk.com/hc/en-us/requests/new?ticket_form_id=1500003104802) that triggers conditional fields to show based on the value that is entered for "Partner Name". I currently have it such that the value for "Partner Name" is automatically entered based on the person currently logged in, via a Zendesk custom theme file created using Javascript code.
The issue that I'm facing is that sometimes upon page load, the conditional logic isn't firing and the custom fields aren't showing, even thought the "Partner Name" field is being preset correctly.
Below is the code for presetting the "Partner Name" value, and I attached a screenshot of the conditional fields logic.
function customizeVendorPaymentRequestForm(ticketFormId) {
if (ticketFormId==1500000340581) {
setGLCode();
};
setPartnerName();
setRequestorName();
setRequestorJobTitle();
setAttachmentText(isExecutiveDirector?"Please attach the invoice.":"Please attach the invoice.");
changeLabelText(didYouAttachApprovalLabelFieldId, didYouAttachApprovalText);
setTimeout(function () {
changeLabelText(doYouApproveThisRequestLabelFieldId, doYouApproveThisRequestText);
}, 500);
};
function setPartnerName() {
$('#request_custom_fields_1500002896402').val(partnerName);
if (partnerName&&partnerName!=undefined&&partnerName!="")
disableFieldByCss("request_custom_fields_1500002896402");
};
I look forward to your feedback and advice!
Sincerely,
Daniel
Posted Nov 08, 2023 · Daniel Zhou
2
Followers
3
Votes
1
Comment