cancel
Showing results for 
Search instead for 
Did you mean: 

If table empty hide subform

Former Member
0 Kudos

Hi,

I need to suppress subform when table displayed in this subform is empty.

if ($.my_table is empty ) " How to do this

then

$.presence = "hidden"

else

$.presence = "visible"

endif

Thanks in advance!!!

Regards,

Amel

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Try to set the subform for "each element" then if your table is empty the subform won't appears .

Best Regards

Former Member
0 Kudos

Thanks Bertrand.

Yet I am curious how to suppress an empty tabel from being displayed in subform by using the FormCalc or JavaScript code.