Search the web
Sign In
New User? Sign Up
qformsapi · qForms API: qForums
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
populated items not being passed on submit   Message List  
Reply | Forward Message #3947 of 3977 |
hi guys,

i have simple form containing 2 x multiple selects -
products_available and products_selected. products_selected is
populated from a query.

problem: the products_selected select will not pass any pre-populated
items when the form is submitted. it will only work if i pass them
back to products_available and then back again??

the code i have to initialise qforms is...

<SCRIPT LANGUAGE="JavaScript">
<!--//
// initialize the qForm object
objForm = new qForm("related_product_form");

// make the User field a container, this will ensure that
the "reset()"
// method will restore the values in the select box, even if
they've
// been removed from the select box
objForm.products_available.makeContainer();
// setting the "dummyContainer" property to false will ensure
that no values
// from this container are included with the value
objForm.products_available.dummyContainer = true;

// make the "Members" field a container--every item in
the "Members" select box
// will be part of the container, even if the item isn't
selected.
objForm.products_selected.makeContainer();

stProductsSelected = new Object();
<cfoutput query="getRelated">
stProductsSelected["#getRelated.product_idfk#"]
= "#getRelated.product_title#";
</cfoutput>

objForm.products_selected.populate(stProductsSelected);
//-->
</SCRIPT>




Thu Apr 3, 2008 12:15 am

d3z1gnr
Offline Offline
Send Email Send Email

Forward
Message #3947 of 3977 |
Expand Messages Author Sort by Date

hi guys, i have simple form containing 2 x multiple selects - products_available and products_selected. products_selected is populated from a query. problem:...
d3z1gnr
Offline Send Email
Apr 3, 2008
11:57 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help