subform height calculation

utente2

31-07-2020

hi, I'm new to AEM Forms. I would like to ask how to calculate the height of a subform which varies according to the number of data passed. The subform is of the Flowed type, the height varies according to the number of elements contained in it (which depends on the number of data it finds). Is it possible to use javascript to calculate its height before printing, and then, using this value in a if control, to display another subform with a certain height rather than another? Thank you

View Entire Topic

utente2

31-07-2020

ok thanks, now I only have a doubt. Between the last row and the footer I should insert a graphic element that covers the empty space. To do that the only way I can think of is to delete the empty rows, except one. And let this one have the height of the space left. Is it possible?