A way to limit number of categories selected?
Posted: 05 November 2010 11:12 PM   [ Ignore ]
Wallflower
Rank
Total Posts:  6
Joined  2010-10-06

I was just wondering if there’s some way I could limit the number of categories a user is allowed to select when submitting an entry via Safecracker. I have my categories set up as checkboxes, and I’d like people to only be able to check 3 categories max. I know this doesn’t specifically have to do with Safecracker’s functionality, but I was hoping maybe you smart fellas might know an easy way to do this? Thanks for any help you can give!

Profile
 
 
Posted: 05 November 2010 11:20 PM   [ Ignore ]   [ # 1 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Have a look at this jQuery plugin: http://www.pengoworks.com/workshop/jquery/field/field.plugin.htm

Profile
 
 
Posted: 06 November 2010 10:39 PM   [ Ignore ]   [ # 2 ]
Wallflower
Rank
Total Posts:  6
Joined  2010-10-06

Thanks so much for that, Rob! Exactly what I needed! smile

Profile