Jump to content
  • 0
zalipresents

Selecting More Than One Radio Button

Question

Does anyone know any additional script to allow for more than one radio button selection at a time?  I'm displaying products of an inventory and need the user to be able to select only the ones they want to see in the next screen & can't seem to get anything to allow for more than one selection.  I understand that the list box can do it, however the items have to be consecutive in order & if you add more items to the list, the list box doesn't auto expand.  Radio buttons are preferred in this case as they are a much cleaner looking list of items.

 

Thanks!

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hello zalipresents,

 

You cannot select more than one radio button, it's limit of the HTML code.

But.

You can change the size of your listbox.

I've used the code to display all items in the listbox and do not display empty items:

<SCRIPT LANGUAGE="JavaScript">
/* "fieldName" is the variable name for the listbox type form element field. */
var fieldName = "InsertRecordFIELDNAME";
var x=document.getElementsByName(fieldName);
x[0].multiple=true;
x[0].size=x[0].options.length;
</SCRIPT>

Share this post


Link to post
Share on other sites
  • 0

Thanks Walter I'll give that a try...do you know how to add display order functions to this code too?  I'd like to have at least 3 options to display by...item, then color, then size & the display item name is different than the actual item name too so there is also that to consider.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...