Closed dehuszar closed 11 years ago
Sorry, hit submit too quickly. Anything above look out of place? I am expecting to see the checkboxes stay checked and selected items stay selected. The application_availability_type field appears to be staying put, but not filtering, and the remaining checkboxes are filtering, but their checked status isn't displaying.
Any help would be appreciated.
Were you able to fix this?
Your tags/conditionals should have the search: prefix to work, just like the form input name.
I'll give that a try, thanks!
Can you give an example please?
Ok nevermind i got it to work thanks :)
Ok still trying things out so with a P&T radio selection it workes with the following code <input type="radio" name="search:fieldname" class="filter-input" value="field_value" {if search:fieldname == "field_value"} checked="checked"{/if}> This works.
But once i change the radio into checkbox it only remember one checkbox instead of multiple after submit
also .. if the field come from matrix there is no way around it ?
EE search: params don't natively support Matrix fields, so there's not much I can do there. With regard to multi-checkboxes/multiselects, there's no solution for that yet, I have to think about a suitable solution.
With the help of pixelandtonic i was able to submit multiple values for search for matrix fields. http://jsfiddle.net/brandonkelly/XPDVp/1/
The problem i'm facing now is "holding" on to the submitted value to keep my "checkbox" checked after submission
now it disappear after submission, so the user doesn't know what they checked. It is not only for "matrix" but even for P&T unless i'm doing something wrong here as it works for radio buttons perfectly!
Original Question in pixelandtonic: https://getsatisfaction.com/pixelandtonic/topics/filter_enteries_with_matrix_field_rows_with_checkboxes?utm_content=topic_link&utm_medium=email&utm_source=reply_notification
I'm having trouble getting the selected states to stay put between submissions.
My code: