AB
going with the flow Posts:62
|
08-25-2009 09:45 AM |
|
I'd like to assign the values selected from a listbox to another listbox upon clicking on a checkbox. The listbox is populated using SQL (Select (FirstName+' ' +LastName) as QuestionOption, UserID as QuestionOptionValue from Users where DisplayName <>''). If this is not doable, I'd be happy to just assign the selected values from a listbox to a multiline textbox.
Thank you very much. |
|
|
|
|
David To
river guide Posts:2719
|
08-26-2009 06:34 AM |
|
HI, what are the values of your listbox (integers or strings)? You will need client side javascript; try this to see if it works first: if ($(checkbox)) {$(listbox2) = $(listbox1)}; Of course, you will need to substitute your shortnames and place it in the initial javascript and checkbox client side event. If this doesn't work, you might need to call the two checkboxlist functions that are available in the javascript file (calculatecheckboxlist and calculatecheckboxlistvalue). -- David |
|
|
|
|
AB
going with the flow Posts:62
|
08-26-2009 07:44 AM |
|
The js you provided only assigns the first value selected from listbox A to listbox B. My list contains strings. I wonder if this is because of the existing problem with listbox where even after selecting Multiple Select, it goes back to Single Select?
Anyway, if I were to use the existing functions you mentioned, do I substitute "input" parameter with "QuestionOption" and the "label" with QuestionOptionValue?
Thanks for all your help! |
|
|
|
|
David To
river guide Posts:2719
|
08-26-2009 08:04 AM |
|
Under "Question Type" of a listbox, you have the option to "single select" or "multi-select". In your case, do you have it set for "multi-select"? -- David |
|
|
|
|
AB
going with the flow Posts:62
|
08-26-2009 08:12 AM |
|
Yes, the Question Type is correctly set to Listbox and its Selection Type to "Multi Select" but someway/somehow keeps getting reset to Single Select everytime. You have many entries in Forums for this same problem. Here's one:
http://www.datasprings.com/Products....aspx#9237 |
|
|
|
|
AB
going with the flow Posts:62
|
|
David To
river guide Posts:2719
|
08-28-2009 06:29 AM |
|
HI, can you export your form to www.betasprings.com (username: host, password: dnnhost) and send us the URL/tabID so we can take a look at your form / javascript and see if it's doable or not? Thanks. -- David |
|
|
|
|
AB
going with the flow Posts:62
|
08-28-2009 07:44 AM |
|
How is that possible? I have an HTML file of my form but when I try to import it in Betasprings.com, it doesn't allow me to re-direct to where my file is. |
|
|
|
|
David To
river guide Posts:2719
|
08-28-2009 07:59 AM |
|
Hi, on your site: 1) click on export content and save the XML file somewhere 2) go to Admin / File Manager and find it and click on it to save to your local hardrive 3) go to betasprings, log in as host, go to admin / file manager and upload the xml file from your local drive to betasprings somewhere 4) create a new page, add the DF module, import content and then choose the XML file that you uploaded on betasprings -- David |
|
|
|
|
AB
going with the flow Posts:62
|
08-28-2009 08:28 AM |
|
I am getting this msg no matter which directory I choose when I try to upload in BetaSprings.
"You Do Not Have Sufficient Permission To Write To Folder Temp/. Please Contact Your Hosting Provider To Ensure The Appropriate Security Settings Have Been Enabled On The Server." |
|
|
|
|
David To
river guide Posts:2719
|
08-28-2009 08:47 AM |
|
1) did you log in as username: host, password: dnnhost? 2) try placing it in "Test" folder -- David |
|
|
|
|
AB
going with the flow Posts:62
|
08-28-2009 10:22 AM |
|
Yes, I'm logged in as host. There's no Test folder in there. I sent you an image showing only the available directories/folders in a separate e-mail.
Thanks. |
|
|
|
|
Candace
river guide Posts:2431
|
08-28-2009 01:38 PM |
|
Hi. Not sure why you're not seeing the Test folder in www.betasprings.com if you're logged in as host and pw dnnhost. If you can't find it, you can also upload it to DynamicForms_Exports in Portal Root. Thanks!
|
|
|
|
|
Candace
river guide Posts:2431
|
08-28-2009 01:45 PM |
|
I just figured out why. I believe that image you sent was taken from Host, File Manager. You need to be in Admin, File Manager. |
|
|
|
|
AB
going with the flow Posts:62
|
08-28-2009 02:15 PM |
|
I'm glad you caught that! Anyway, here's the link:
http://Beta-Springs.com/ABs/tabid/6...fault.aspx
So, what I'd like to accomplish is that after a user has selected preferred partner(s), futher down is a checkbox labeled "Click if assigning same partner(s)" that when checked, the values selected from listbox "applLstPartnersByAppl" get assigned/selected in "applLstPartnersAssigned". If this is not doable (listbox to listbox), I'd be happy with these values from listbox get assigned to another suitable Question Type.
Thanks. |
|
|
|
|
David To
river guide Posts:2719
|
08-31-2009 07:03 AM |
|
HI AB, I'm looking at your form now and will keep you notified sometime today if I've made any progress on this issue. -- David |
|
|
|
|
AB
going with the flow Posts:62
|
|
David To
river guide Posts:2719
|
09-09-2009 07:48 AM |
|
Sorry but NO LUCK SO far. Javascript for listbox is not very friendly for multiple selections, etc. Will have to delve on this some more. You might consider googling and see if you can find some javascript functions that will work with listbox. -- David |
|
|
|
|