Recherches récentes


Pas de recherche récente

Anne Lhomme's Avatar

Anne Lhomme

Adhésion le 15 avr. 2021

·

Dernière activité le 07 sept. 2023

Suivis

0

Abonnés

0

Activité totale

7

Votes

3

Abonnements

3

APERÇU DES ACTIVITÉS

Dernière activité effectuée par Anne Lhomme

Anne Lhomme a créé une publication,

Publication 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!

Publication le 26 janv. 2021 · Anne Lhomme

14

Abonnés

19

Votes

12

Commentaires