Hi,
thanks for your question, and sorry for the trouble.
I’m not aware of an existing solution for sorting via dropdown, so trying an external JS script could be a possibility.
Your best chance would then be to let TablePress print only the HTML code, so that you can manually add any JS code that you want.
Regards,
Tobias
Thanks Tobias! I actually found a creative work around using the row filter extension and a dropdown with conditional logic programmed in Gravity forms. 🙂
I’ll ask the client to make a donation. Thank you so much for all you do!!!
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
And thanks for wanting to donate, I really appreciate it!
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!
Tobias,
So I got this to work and it’s actually pretty slick (not live yet to share a link though).
The only problem is this:
This works to align the search to the left but it jumps to the right when filtered.
#tablepress-18_filter {
float: left;
}
I tried the following CSS but it didn’t work. I can’t seem to find the correct ID in the inspector…
#tablepress-18 #dataTables_filter {
float: left;
}
Any suggestions?
Thanks!
Sara
Hi Sara,
please try
#tablepress-18_filter {
float: left !important;
}
Regards,
Tobias
Tobias,
Unfortunately that code didn’t work, nor did several other things I tried…
The page is live though now if you want to look at it. Maybe you can see something I haven’t been able to. 🙂 https://www.iraservicestrust.com/forms
Thanks!
Sara
Tobias, this has been solved!!
.dataTables_filter {
float: left !important;
}
Hi,
very nice! Yes, this is the correct version of the code if you want to apply this to all tables. Good to hear that you found this!
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!