Do not show label if the field is not filled

francescocartei 02 Sep, 2017
Hi, I have a multipage module where I have different text fields, not all obligatory, all with a label, and I would like in the summary the fields that were not filled will not be displayed (not even the label).
Do not show label if the field is not filled image 1
Max_admin 03 Sep, 2017
Hi armando,

For this you will need a switch action, for each field, in the "data provider" you need to use {data:field_name} and in the switch body you need to add the summary contents of that field.

This can be inside a loop of course.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 06 Sep, 2017
Hi Armando,

It's the data provider in the "Switch" action, not that one, please remove it from there or it may cause problems.

What is the code in your summary page ?

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger