Recent searches


No recent searches

Anne Lhomme's Avatar

Anne Lhomme

Joined Apr 15, 2021

·

Last activity Sep 07, 2023

Following

0

Followers

0

Total activity

7

Votes

3

Subscriptions

3

ACTIVITY OVERVIEW

Latest activity by Anne Lhomme

Anne Lhomme created a post,

Post Discussion - Tips and best practices from the community

Following the creation of a personalized form, the problem we had was that the fields, subject to conditions, appeared empty in the client interface. What we wanted was to see only the fields that would have been completed.
To prevent these fields from appearing and appearing empty, we have modified the code of the Help center theme's ticket request page (request_page.hbs).
Since the value that appears when the field is empty is "-", we have made it so that it is not displayed.

#before modification

{{#each custom_fields}}
{{title}}


{{value}}

{{/ each}}

#after modification

#we indicate that if the character "-" is present then the field is not displayed.
{{#each custom_fields}}
{{#is value "-"}}
{{else}}
{{title}}


{{value}}

{{/ is}}
{{/ each}}

Hope that help!

Posted Jan 26, 2021 · Anne Lhomme

14

Followers

19

Votes

12

Comments