Ricerche recenti


Nessuna ricerca recente

Anne Lhomme's Avatar

Anne Lhomme

Data ingresso 15 apr 2021

·

Ultima attività 07 set 2023

Seguiti

0

Follower

0

Attività totali

7

Voti

3

Abbonamenti

3

PANORAMICA ATTIVITÀ

Ultima attività di Anne Lhomme

Anne Lhomme ha creato un 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!

Data ultimo post: 26 gen 2021 · Anne Lhomme

14

Follower

19

Voti

12

Commenti