nwrightau VIP
Total posts: 99
23 Сен 2014 06:27

Hi,

Creating a new content type I can see the boolean field type, if this item is yes I want several other fields to appear.

Is this possible in cobalt?

Thanks

Последние изменения: 24 Сен 2014


pepperstreet VIP
Total posts: 3,837
24 Сен 2014 00:11

Not possible by configuration... but you can do it in custom templates.

On submission form or record full view?


nwrightau VIP
Total posts: 99
24 Сен 2014 01:26

pepperstreet Not possible by configuration... but you can do it in custom templates.

On submission form or record full view?

This would be a good feature for Cobalt!

Needs to be both lol. If it's a certain type, display some different fields - submission & record view.


klox7 VIP
Total posts: 914
24 Сен 2014 06:43

You can do it with JS, something like

$(document).ready(function() {
    if ($('#id').hasClass('active')) {
        $('#id').show();
    } else {
        $('#id').hide();
    }
});

but in this case all show/hide fields can't be required.

Работает на Cobalt