As illustrated, I noticed that we can add classes such as "hidden" and "unhidden" in Field Class while editing a Field. This can be useful if the developer could create a Javascript event trigger to hide/unhide a field based on the response from a previous field. However, **there's no way to reference the hidden div **because the fields are placed in divs without IDs. Without an id to reference, there's no way to unhide them. :( Note the div Cobalt generates for each field below, which contains no ID:
<div class="controls hidden">
To fix this, I suggest using the div that you already declare an ID. You have a unique div wrapped around every field such as fld-1, fld-2, fld-3, etc. Perhaps add the class to that so that we can write javascript code that will toggle (hide/unhide) fields upon some sort of trigger. (Unless of course you have a different method to achieve this.)
Thanks!
As illustrated, I noticed that we can add classes such as "hidden" and "unhidden" in Field Class while editing a Field. This can be useful if the developer could create a Javascript event trigger to hide/unhide a field based on the response from a previous field. However, **there's no way to reference the hidden div **because the fields are placed in divs without IDs. Without an id to reference, there's no way to unhide them. :( Note the div Cobalt generates for each field below, which contains no ID:
To fix this, I suggest using the div that you already declare an ID. You have a unique div wrapped around every field such as fld-1, fld-2, fld-3, etc. Perhaps add the class to that so that we can write javascript code that will toggle (hide/unhide) fields upon some sort of trigger. (Unless of course you have a different method to achieve this.)
Thanks!