I'm wondering if there is a simple way to colorize the FILTER button whenever a filter is set (and to reset it after filters are rested). This would help users understand why an entry in the quick search field doesn't offer the expected records.
Thanks for your suggestions.
Filter Button color
Re: Filter Button color
That's a really good suggestion for a helpful UX enhancement. You can add the following code to hooks/footer-extras.php:
Code: Select all
<script>$j(() => {
const filtersApplied = $j('[name^=FilterField]').length > 0;
$j('#Filter.btn')
.toggleClass('btn-warning', filtersApplied)
.toggleClass('btn-default', !filtersApplied)
})</script>

- DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
- Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.
- Need personalized consulting on your specific app and customizations? Book an online call with me here.
Re: Filter Button color
Hi Ahmed,
thanks for the code. Really a nice addition.
Olaf
thanks for the code. Really a nice addition.
Olaf
Some postings I was involved, you might find useful:
Multi Path Upload (MPU) / dynamic upload folder; SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button
Multi Path Upload (MPU) / dynamic upload folder; SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button
Re: Filter Button color
Hi Ahmed,
absolutely perfect.
Thank you very much
Klaus
absolutely perfect.
Thank you very much
Klaus