Pesquisas recentes
Sem pesquisas recentes

Anne Lhomme
Entrou em 15 de abr. de 2021
·
Última atividade em 07 de set. de 2023
Seguindo
0
Seguidores
0
Atividade total
7
Votos
3
Assinaturas
3
VISÃO GERAL DA ATIVIDADE
MEDALHAS
ARTIGOS
PUBLICAÇÕES
COMENTÁRIOS NA COMUNIDADE
COMENTÁRIOS EM ARTIGOS
VISÃO GERAL DA ATIVIDADE
Atividade mais recente por Anne Lhomme
Anne Lhomme criou uma publicação,
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}}
{{value}}
{{/ each}}
#after modification
#we indicate that if the character "-" is present then the field is not displayed.
{{#each custom_fields}}
{{#is value "-"}}
{{else}}
{{value}}
{{/ is}}
{{/ each}}
Hope that help!
Publicado 26 de jan. de 2021 · Anne Lhomme
14
Seguidores
19
Votos
12
Comentários