Buy Now
Sign in

Do not show label if the field is not filled

francescocartei , September 02 at 15:35
f
francescocartei

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).
http://i67.tinypic.com/2i9hx5y.png

admin

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!

f
francescocartei

I have to fill only this field?
http://i68.tinypic.com/al4yzs.png

admin

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!