Solved

CUSTOM GROUP VALIDATION TextBoxes / RadioButton Lists

Posted on 2013-12-04
6
227 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
  • 2
  • 2
6 Comments
 
LVL 33

Accepted Solution

by:
Big Monty earned 500 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
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…

777 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