Solved

CUSTOM GROUP VALIDATION TextBoxes / RadioButton Lists

Posted on 2013-12-04
6
225 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 32

Accepted Solution

by:
Big Monty earned 500 total points
Comment Utility
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
Comment Utility
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 32

Expert Comment

by:Big Monty
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now