sham
going with the flow Posts:40
|
10-08-2009 03:17 AM |
|
I want to create a wizard that will have multiple pages / hidden fields and based on all the demos I have reviewed thus far, demo #10 is the only demo that has a wizard type feature however; it only has two pages and I want multiple pages. As I mention in my early post I am new to Dynamic Forms, therefore I maybe over locking some obvious features or information to where the answers to my challenges are stored. So with that said, here's what I would like to accomplish.
Using a combo box with the option of sql driven selected. This combo box will house a series of triggering items and depending on the item selected it will reveal the appropriate page / hidden field(s). Every page / hidden field(s) will then lead to another page / hidden field(s) until all the information is collected and submitted. So for example:
If I select Add A Vendor on the combo box, I want it to take me to a page or reveal a question that would allow me to add this vendor. The Vendor field however; must be able to ensure the vendor do not exist in the database before moving onto the next step in the wizard, of wish they are they will be several steps.
I create a combo box, the options are as follows:
1) Sql event driven, with store procedure "exec usp_DisplayActionItems". This works perfectly.
2) Under Advanced Field options, I selected "Do not save field results to the database:", as this combo box will only be the triggering event, the data in this field do not need to be saved.
3) Based on demo # 10, I would create a "completion event" however; how I do not know how to create a completion event for a combo box with multiple outcomes?
Please assist.
|
|
|
|
|
David To
river guide Posts:2719
|
10-08-2009 06:44 AM |
|
HI, you would create a completion event for each response that will be chosen from the combobox. For multiple pages, it would be better to pass all the fields as session variables and make sure to retrieve them as session variables on the last page. Try this out and see if it works for you. -- David |
|
|
|
|
sham
going with the flow Posts:40
|
10-08-2009 06:52 AM |
|
Just to be clear, I can have multiple completion events on the same question / combo box, is that accurate? So for example, if Option A is selected pull up page 1, if Option B is selected pull up page 2 etc. |
|
|
|
|
David To
river guide Posts:2719
|
10-08-2009 06:58 AM |
|
Yes, create a URL / Page Redirection completion event for each combobox response to redirect them somewhere else. -- David |
|
|
|
|
sham
going with the flow Posts:40
|
10-08-2009 07:02 AM |
|
I am sorry, I think phase my question incorrectly. Just to be clear, I can have multiple completion events on the same form, is that accurate? So for example, if Option A is selected on a combo box question pull up page 1, if Option B is selected on a Combo box question pull up page 2 etc. Also, if that's accurate is that also true for a question, I can have multiple completion events for a question? Sorry for the confusion. |
|
|
|
|
David To
river guide Posts:2719
|
10-08-2009 07:10 AM |
|
Yes, you can have as many completion events as you want. You can also have multiple completion events for the same question but be sure to choose a different response. -- David |
|
|
|
|
sham
going with the flow Posts:40
|
10-08-2009 08:50 AM |
|
Ok, I am little confused. Please clarify the definition of "page", as I am interpreting page to mean go to Admin -->Page and create a new page and add a new dynamic form to that page. So for example, in my wizard on the first form / page, I have my combo box and on the second form / page, I will have additional details. With the completion event I will reference the second page on the first form / page. If my interpretation of page is accurate then how do I make the second page hidden? as I don't want viewers of the web site to ever see this page, unless they are going through the wizard. |
|
|
|
|
David To
river guide Posts:2719
|
10-08-2009 09:03 AM |
|
Okay, a page is referenced in DNN as a TABID number. On that page, you have your contentpanes that you can insert many DNN modules on this one page. If you click on Settings (either under the Control Panel Edit Mode) you should see a checkbox that says "Include in Menu" and also a bunch of checkbox to pick which roles can View / Edit the page. If you don't want anyone to go to page 2 directly for example, simple do not check that box. Only check it for page 1 and have page 1 redirect to page 2. That way, no user can go to page 2 unless they fill out page 1 first or they have Admin privilege to go to Admin / Pages. -- David |
|
|
|
|
sham
going with the flow Posts:40
|
10-08-2009 09:10 AM |
|
OK, I will try this out tonight and will provide an update, thank you. |
|
|
|
|