Гость
24 Фев 2014 14:20

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!

Последние изменения: 02 Март 2014


pepperstreet VIP
Total posts: 3,837
24 Фев 2014 15:23

Sergey
Total posts: 13,748
24 Фев 2014 23:51

I am not sure but if i use class hide it hides field. Class hide is a class of Twitter Bootstrap.

Работает на Cobalt