ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Safecracker: how to change category list on fly

April 25, 2011 9:52am

Subscribe [2]
  • #1 / Apr 25, 2011 9:52am

    Burunduk

    12 posts

    Hello!

    I use EE version 2.1.3

    I have a little problem. User can choose a channel on fly. Here it is the working code:

    <select name="channel_name" size="5">
        <option value="1">AAA</option>
        <option value="2">BBB</option>
    <option value="3">CCC</option>
    </select>
    
    [removed]
    $('select[name="channel_name"]').change(function() {
        var v = $(this).val();
        $('input[name="channel_id"]').val(v); 
    });
    [removed]

    Categories are similar for channels “AAA”  and “BBB”, but they are different for “CCC”. So I would like to change category list on fly like in ‘Advanced search form’. User choose channel “CCC” and then corresponded list of categories would loaded.

    Could you help me in that question?

  • #2 / Apr 25, 2011 5:05pm

    Brandon Jones

    5500 posts

    Hi Burunduk,

    This would involve a bit of custom code, and SafeCracker is working properly here, so I’ll need to move this over to the CodeShare Corner to get you further input. Thanks!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases