close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

prepopulate dropdown menus?

Thread began 6/10/2013 7:59 pm by sam308940 | Last modified 7/10/2013 4:43 pm by Jason Byrnes | 733 views | 5 replies |

sam308940

prepopulate dropdown menus?

I have this already in use on an order page.
the parent menu has TYPES and the target menu has COLORS.

My client wants to have some conditions (on another page) where a user hits a button and it sends them to the order page loaded with the fields pre-populated based on which button they pressed. IE if they pressed option A, the type and colors are pre-populated with a specific type and specific color.

HOWEVER she wants it to pre-populate wihile allowing the user to change it. I need to still ahve the menus in full function.

I understand how i can get the parent menu to pre-populate. however the target menu is tricky and i cant seem to get that to pre-populate.

can the target be pre-populated?

Sign in to reply to this post

Jason ByrnesWebAssist

use the populate list from array behavior on the Body tags onload event.

much the same way you add the populate list from array behavior to the parent select list on change event, only this time select the body tag.

Aslo use the Set Selected In List behavior.

the Body tag should have the following behaviors:
set Selected in list - to set the parent list selected element
Populate List from Array - to populate the child list
Set Selected In List - To set the selected item in the child list.

Sign in to reply to this post

sam308940

Hi
thanks for the above notes, but i dont see how i can get to those steps. when i edit the "Create dynamic array" in the server behaviors list, i get the option of 4 items: recordset, parent, child, child value. How can i get to the point to make the changes you list above? do i have to remove the current dynamic arrays on the page, and start over ?

Sign in to reply to this post

Jason ByrnesWebAssist

I did not say to add another create dynamic array behavior,

I said to add additional Populate List From Array behaviors.


lets review what you have done till now:

- you added the Create Dynamic Array server behavior
- You selected the parent list and added the populate list from array behavior to the onChange event.

what I am saying in my original response is to select the body tag, and add a Set Selected In List behavior, and populate list from array behavior for both the parent and child lists to the OnLoad event. This is very similar to the behavior you added to the parent list onChange event.

Sign in to reply to this post

sam308940

Hi

I think I might not be explaining clearly what I was wanted to do.
http://www.boogiebabyusa.com/blankets/Peekaboo-Bear/319.html
if you go here, and just hit continue
on the step 2 you will see FABRIC SELECTIONS, when you select a fabric you get a color option.
this is working fine. I made this page a few years ago, so im not clear on all the steps i took to get it to work. However i believe i did as you described above to populate the list.

BUT
if you see to the left, the other views of the product. we want to add a button that says "order just like this" which basically reloads the page with those fabrics and colors PRE-SELECTED in the menus.

is this possible?

Sign in to reply to this post

Jason ByrnesWebAssist

it can be done and will basically take the same steps i listed above.

the Just like button will need to submit the selections to the next page, then using the Set Selected in list behavior on the body on load behavior and the posted details from the previous page you pre select the lists.

If you need help in putting this together, i would suggest signing up for a premiere support appointment where we can help you in a one on one session:
http://www.webassist.com/premier_request.php

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...