Posted by Michal
2014-06-30

Hi,

i have a question, how make related dropdown list like:

color >> red / blue / etc
size >> 40 / 41 / 42

One dropdown list as parent, so when we choose first type then apperas other details to set.

Any idea?
Posted by Tom
2014-06-30

You can do it with javascript. When you add the javascript to the template, probably you need to assign an id to select the element. To assign an ID , add "ZB_ATTR" to the placeholder like this.

<?php echo $hm->Zb('rs:def:your_field_name', ZB_ATTR, array( "id" => "enter-your-id-here" ) ); ?>
Please replace "enter-your-id-here" with your id.