Fields only get hidden after jQuery document.ready is triggered. Suggestion: CSS support for hiding fields by default, and have the JS overwrite the CSS. #6
Hi,
Waiting for document.ready was made on purpose. Without it, if a form has predefined values, all conditions will be calculated incorrectly because calculation might start before the value is assigned.
You have a point too. I guess adding a parameter like hideFirst: true solves the problem. On the other hand, one can just set CSS manually like .conditional {display:none;}. Which is also quite simple. I will think about it.
If this is demanded by many other users, then I will definitely add the option. But as long as it is a one person's request, I think it's simpler to add CSS manually.
Hi, Waiting for
document.ready
was made on purpose. Without it, if a form has predefined values, all conditions will be calculated incorrectly because calculation might start before the value is assigned. You have a point too. I guess adding a parameter likehideFirst: true
solves the problem. On the other hand, one can just set CSS manually like.conditional {display:none;}
. Which is also quite simple. I will think about it. If this is demanded by many other users, then I will definitely add the option. But as long as it is a one person's request, I think it's simpler to add CSS manually.