Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

CUSTOM GROUP VALIDATION TextBoxes / RadioButton Lists

Posted on 2013-12-04
6
Medium Priority
?
232 Views
Last Modified: 2014-01-12
Hi Experts,

I've a list of about 20 words that I need people to be able to select their top 5 from and rank them in order of importance

I began with a checkboxlist which restricts selection to 5 but this would then require people to type their five words seperately in order to provide the ranking.

I would prefer to list the words and provide a textbox or radiobuttonlist for each and ask users to simply rank their top five from the given list.  Clearly though they need to only be able to rank 5 of the possible 20 listed items and of those 5 each one must have a unique value from 1- 5.

Anyone able to advise?
0
Comment
Question by:forsters
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
6 Comments
 
LVL 34

Accepted Solution

by:
Big Monty earned 2000 total points
ID: 39695560
what you could do is have 2 multi-select boxes. You would then store the list of 20 words in one of the boxes, and have buttons that when the user selected a word, it would transfer the word to the second list. here's a demo on what I'm describing:

http://www.johnwbartlett.com/cf_tipsntricks/index.cfm?TopicID=86

then, to rank them, you could use jquery to do that:

http://jsfiddle.net/Shef/Aq8s3/
0
 

Author Comment

by:forsters
ID: 39697814
Hi The _Big_Daddy! (great username...the mind boggles!)

Thank you for this, I did wonder about using listboxes, unfortunately yesterday was sucha tight deadline in the end I had only time to glance at your answer before deciding I'd have to take a quick and easy approach. However if you can bear with me for a few days I would like to try that out, I havent used listboxes before so it would be good to learn.
0
 
LVL 34

Expert Comment

by:Big Monty
ID: 39698351
no problem. , I'll be around :)

when i say list boxes, i mean select boxes that have the "multiple" attribute applied to them
0
 

Author Comment

by:forsters
ID: 39698603
Thanks,

Oh ok yes I see, not asp:ListBoxes...I just assumed thats what you meant because they work in that way, presumably either would probably work just a case of validating client vs server side.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question