Jump to content

Multi-Select for WebForm

Recommended Posts

Hi! I am new here and new to Java as well, and I am having ussues already.

I got the Java for multi-select list boxes, and put it in my HTML header but it does not work...any help would be greatly appreciated. I need 3 of the list boxes I have on my submission form to be multi-select. The first Field is "Hardware", so is this what I need to type?


/* "fieldName" is the variable name for the listbox type form element field. */

var fieldName = "InsertRecordHardware";

var x=document.getElementsByName(fieldName);


Link to comment
Share on other sites

Let's say you have three fields (FIELDNAME1, FIELDNAME2, and FIELDNAME3) and you want to enable multi-select listbox for all three fields, here is the code sample you can use.

PS: make sure to replace the FIELDNAME1, FIELDNAME2, and FIELDNAME3 with your table field names.

/* "name1" is the variable name for the listbox type form element field. */

var name1 = "InsertRecordFIELDNAME1";

var name2 = "InsertRecordFIELDNAME2";

var name3 = "InsertRecordFIELDNAME3";

var x=document.getElementsByName(name1);


var y=document.getElementsByName(name2);


var z=document.getElementsByName(name3);


Link to comment
Share on other sites

  • 3 years later...

I am new to Caspio and this forum.


I would like to know if I can limit the number of selections that a person can make in a multi-select submit form based on the level of their subscription to my service. A Basic user might be able to select only 3 items in the Listbox while a higher level subscriber can select 5. Is this possible? As the user upgrades their subscription level can I dynamically change this limitation?




Link to comment
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.

Reply to this topic...

×   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.

  • Create New...