wordpress-fieldmanager icon indicating copy to clipboard operation
wordpress-fieldmanager copied to clipboard

Hide add another when limit reached?

Open dawnerd opened this issue 7 years ago • 2 comments

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?

dawnerd avatar Jul 18 '17 05:07 dawnerd

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.

dlh01 avatar Jul 18 '17 14:07 dlh01

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!

dawnerd avatar Jul 18 '17 19:07 dawnerd