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.

dynamic search (checkboxes)

August 30, 2012 5:35am

Subscribe [1]
  • #1 / Aug 30, 2012 5:35am

    Visual

    14 posts

     
    Hi
    i’m wondering if someone can help me with this

    I’m filtering values of two matrix fields with checkboxes (with the use of dynamic fields)
    everything works through javascript to send multiple values…

    <input type="hidden" class="filter-input" name="search:matrix_field" value="">

    However the value comes from a matrix_field… so in order to make it work i need to pass the matrix field in my case name=“search:matrix_field” to the hidden input field.

    this works perfect
    but if i want to filter on multiple fields it doesn’t work, perhaps I’m doing it wrong


    This is what it tried so far…

    <input type="hidden" class="filter-input" name="search:matrix_field|search:Other_matrix_field" value="">
    
    <input type="hidden" class="filter-input" name="search:matrix_field|Other_matrix_field" value="">

     

  • #2 / Aug 30, 2012 5:30pm

    Kevin Smith

    4784 posts

    Hi Visual,

    To be honest, I need some more context to fully understand what you’re trying to accomplish. Could you show me the full template perhaps? You can post it to http://pastie.org and then post the pastie link here if that’ll help!

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

ExpressionEngine News!

#eecms, #events, #releases