Hide Blank Custom Fields on Requests | Community
Skip to main content

Hide Blank Custom Fields on Requests

  • October 8, 2022
  • 1 reply
  • 0 views

Graham11

Using conditional logic in the ticket form means there are a lot of questions with blank responses and I would like to hide these to keep the request view tidy. You can see how this looks today in the image

 

Based on other feedback I have edited the request_page.hbs and added the following but with no success:

 

     #indicate that if the field is black then do not display
          {{#each custom_fields}}
          {{#is value "-"}}
          {{else}} 
            <dt>{{title}}</dt>
            <dd>
              {{value}}
            </dd>
          {{/is}} 
          {{/each}}
        </dl>

1 reply

Sam15
  • October 8, 2022

Hi @graham11! Please refer to this post for a more exhaustive code block to use, and let us know if you experience the same issues!