最近搜索


没有最近搜索

Anne Lhomme's Avatar

Anne Lhomme

已加入2021年4月15日

·

最后活动2023年9月07日

关注

0

关注者

0

活动总数

7

投票

3

订阅

3

活动概览

的最新活动 Anne Lhomme

Anne Lhomme 创建了一个帖子,

帖子 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!

已于 2021年1月26日 发布 · Anne Lhomme

14

关注者

19

投票

12

评论