I have separated my search page from the results page and created a submission page that contains the virtual parameters : [@Topic], [@Type], and [@Instrument]. They are all listbox types. I want to allow selection of more than one value for each field. I tried to use the java script recommended by Caspio (I do not know java), but i get the error: " 'x,0' is null or not an object". Can someone please help me figure tell me what's wrong with my script? :
/* "fieldName" is the variable name for the listbox type form element field. */
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.
Question
TCECdb1
I have separated my search page from the results page and created a submission page that contains the virtual parameters : [@Topic], [@Type], and [@Instrument]. They are all listbox types. I want to allow selection of more than one value for each field. I tried to use the java script recommended by Caspio (I do not know java), but i get the error: " 'x,0' is null or not an object". Can someone please help me figure tell me what's wrong with my script? :
/* "fieldName" is the variable name for the listbox type form element field. */
var Type = "InsertRecordType";
var x=document.getElementsByName(Type);
x[0].multiple=true;
var Topic= "InsertRecordTopic";
var x2=document.getElementsByName(Topic);
x2[0].multiple=true;
var Instrument = "InsertRecordInstrument";
var x3=document.getElementsByName(Instrument);
x3[0].multiple=true;
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
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.