Hi

I've set up HS to handle the exposed filters (there are 3 independant filters) on a view.
In order to give more fluidity in the selection, I'd like that the "submit" is automatically triggered when user clicks on one of the "Add" button so that it refreshes the view after each addition.

Is there a way to do this?

Many thanks

Laurent

Comments

wim leers’s picture

Assigned: Unassigned » wim leers
Status: Active » Postponed (maintainer needs more info)

Sure. JavaScript.

This might work, but it's off the top of my head, so no guarantees:

$('#add-button-id').click(function {
  $('#submit-button-id').click();
});

Obviously you'll have to change the #ids. Then, try it in Firefox, through Firebug.

agence web coheractio’s picture

Works fine.
Thanks
Laurent

agence web coheractio’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)