wordpress-fieldmanager
wordpress-fieldmanager copied to clipboard
Hide add another when limit reached?
Trying to get the add another/more button to not show up once the limit has been reached and don't seem to see a clean way to do it. Am I missing something obvious or is this not possible without hacking in some js?
I could have sworn there was an issue about this, but now I can't find one, or maybe I'm missing something, too.
One workaround I know of is to set both limit
and minimum_count
to the same value. The "Add Another" button won't display, but the downside is that [limit]
number of fields will always be visible.
#582 also seems related.
Ah ha that'll work. To be honest not even sure why I was using add more since I'm always going to have a set number of items. But good to know regardless!