[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

CUSTOM GROUP VALIDATION TextBoxes / RadioButton Lists

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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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

872 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