Buy Now
Sign in

Do not show label if the field is not filled

francescocartei , September 02 2017, 15:35
F
francescocartei 32
September 02 2017, 15:35 #371901
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).
admin 27
September 03 2017, 04:38 #371909
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
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
F
francescocartei 32
September 03 2017, 11:41 #371924
I have to fill only this field?
admin 27
September 06 2017, 18:41 #372034
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
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!