I'm already using the built-in forms module. And I'm also using the "has depending" and "depends on".
But the issue I'm having is that I use a custom HTML layout, with custom divs. When you use the has depending and depends on functionality the rendered labels and input fields can be hidden BUT not the custom surrounding HTML.
So my problem is that I have all the div's in my custom HTML layout and I want to test some values there, unfortunately I was unable to hide the custom div's in my custom HTML layout surrounding the labels and input fields. I also tried the custom ASCX layout but that didn't go well either.
Now I managed to get it to work, but I had to use the content before and content after fields for each field in my form, which results in sometimes not closing a div because it's wrapped in a row or something (see my HTML above)
Isn't there an easier solution, a more customer friendly solution? Because if I have to tell the customer how HTML works (especially the content before and content after parts),well... you know :)