?
Solved

CUSTOM GROUP VALIDATION TextBoxes / RadioButton Lists

Posted on 2013-12-04
6
Medium Priority
?
231 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 33

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 33

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
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

800 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