Steven Weiss
Nuke Active Member Posts:23
|
04/22/2011 8:07 AM |
|
Hi, I want to carry information from one page to another, and use that information to fill up some "TextBoxes" on the second page. Can you please let me know the way to achieve this. Eg. http://www.pmcorp.com/Events/semina...binars.asp On this page when user clicks on the active hyperlink, information is carried through the Query string to another page and then that query string information is used to fill up the form created. I know how to do it in ASP/PHP. My issue is how the same feature can be achieved in DNN. |
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
04/22/2011 8:39 AM |
|
Yes, you can. In fact, since DotNetNuke is "just" a big ASP.NET application, you can do anything in DotNetNuke that you can do in ASP.NET ... and that is anything. One thing, though, that you cannot do in a DotNetNuke page is include form tags. So, is you are creating a form on a page and need to "Post" it, you'll need to create a link attached to the Submit button that does the post for you. Normally this gets done in javascript. You did not say in your message how you are creating the input data on one page or how you are creating the form on the second page. If all of this is inside of DotNetNuke, I would strongly recommend that you consider using the Dynamic Forms module from Data Springs or Form Master 2008 from Code 5 System. Both are available at Snowcovered.com. I've used both modules and like both of them. For complicated, multipart forms Dynamic Forms is probably the better choice. Both will let you populate a form with query string data. In a DotNetNuke site and if the user is logged in, you can also populate parts of the form with user profile information. You can also specify default values for form items, or populate items from database queries. Of course, you can also do this in ASP.NET in a custom form. Or ... if you are using DotNetNuke 5.6.2, you could think about doing this with a custom script in a Razor Host module instance. Let us know what you do, and how it goes. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Steven Weiss
Nuke Active Member Posts:23
|
04/24/2011 11:33 PM |
|
Hi, The page 1 has a pop up window with a Submit button on it. and from here I will call Page 2 and pass querystring using Javascript as you suggested. Now Page 2, where Some of the fields need to be auto populated with "query string information" and rest should be the input fields like "Name, Address, Phone" etc.. where user will input the data. Then user should click a submit button which should then send mail to specific email ids with all the data filled by user. This is the idea of overall operation. Now can you suggest what needs to be done.
|
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
04/25/2011 6:28 AM |
|
Is your page 1 with the popup all set? And, does it call page 2 with the correct data in the querystring? For page 2, I'd really recommend Dynamic Forms. Construct the form and use the options available to populate the appropriate fields with the data in the query string. We do have some tutorials here on using Dynamic Forms. Dynamic forms will format and send the email when it's submit button is clicked. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Steven Weiss
Nuke Active Member Posts:23
|
04/25/2011 7:00 AM |
|
Hello, Page 1 with pop up window is all SET and working. I have not yet called page2 url with querystring from Page 1, this was my plan about calling page 2. (we generally do in this way in ASP) Do you think it is not possible or is there any issue doing this.? And if it is not possible to call page 2 from page 1 using javascript, can you please let me know the proper way to handle that? |
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
|
Steven Weiss
Nuke Active Member Posts:23
|
04/25/2011 10:57 PM |
|
Hi , Thanks for all help you are providing. I have downloaded the trial version for dynamic forms from datasprings, and going to test my requirement with it. But have a small question, Can we achieve this same Form related functionality using Simple "HTML Module". Form designing is simple in HTML module..no issues, but collecting Querystring, using its values to populate the fields and after processing all input data sending an Email to specific ids .. Can these 2 tasks be performed without using any Third Party module? If yes how? |
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
04/26/2011 8:28 AM |
|
For forms, take a look at the DotNetNuke Form and List Module. It is provided with DotNetNuke. You will find some tutorials under its old name, the User Defined Table module. I don't believe that it has the built-in capability to fill in form data, but you can do that easily with javascript or jQuery. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|