My client asked me if it was possible to use an image as a filter in the search form... It would be so much easier if, in addition to drop-down/select, radio and checkboxes, we could have an image input field...
I'm able to do it with jQuery/JavaScript, but it's static...
So, I added a field to my taxonomy (we are showing fields, but filter with taxonomy) to insert an image... That works, but I can't get the image as a source (again, would be great with input type="image").
So, now I use jQuery to preprend an image (with static url, that's the problem) to the radio buttons and hide the input with CSS (and with format="" I can also hide the label).
Is there a better way, that would allow me to use the taxonomy image and therefore would be easier for my client to change the image and also be dynamic if we change the path...?
Sorry, I just noticed that I sent a reply to you a few hours ago, but it seems to be lost.
Coincidentally I have another client asking about doing something similar, and because Views doesn't offer any way to customise the output of filter controls, this is actually rather difficult.
I've been trying to think of a solution this morning and I'm not sure there is one that doesn't depend on a lot of custom JS, but I'm going to circle back to this shortly to have another crack at it, and I'll update you again.
I have a solution for you, but it's quite complex and I'm out of time today, so I'll post the solution when I start in the morning, I hope that's okay.