How Can I Add Specific Text in new_request_page.hbs template based on Ticket Form ID?

답변함


2021년 8월 06일에 게시됨

Hi,

I'm working on adding a new contact form to our help center and routing end users to specific ticket form based on where they clicked the submit a request link (thanks to help from Ifra Saqlain & the community!!). 

Now, I am hoping I can customize text above the request form based on the ticket form id (today we have one from with text above it without special logic). What I want now is:

  • Have Ticket Form A show Text A above the form 
  • Have Ticket Form B to show Text B above the form
  • Have Text C follow both Text A and Text B above the form.

I've tried the code below but it's not working.  Text A appears on both forms, and, it appears UNDER B.  Does anyone know how to do this/what's up with my code?  

{{#each ticket_forms}}
{{#is id 123}}
<p>Text A</p>
{{else}}
<p>Text B</p>
{{/is}}
{{/each}}
<p>Text C</p>
<br>
<div class="new-request-form">
{{request_form}}
</div>

1

18

댓글 0개

로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물