Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListHow to access the data in the Form on Submit?How to access the data in the Form on Submit?
Previous
 
Next
New Post
1/26/2013 2:20 PM
 

Okay, new to the Form and List module so bear with me as I am pretty sure this is a dumb question. 

Let's say I have a simple Form that accepts two fields:  'FirstName' and 'LastName'.  When the user fills them in and clicks submit I want to redirect to another DNN page on my site. 

How can I then retrieve the submit values on this page?

I have tried dropping a Razor Host module on the page that I redirect to and have attempted to access the form values but:

 @Request.Form.Count.ToString()

returns zero. Surely, you can access the form values on the redirect page??  I must be missing something obvious.

Thanks,
Rod

 

 

 

 

 

 

 
New Post
1/28/2013 5:02 PM
 
What are you planning to do with the data?
You could redirect to a page that has ANOTHER instance of the F&L module, displaying only the newest record, and using custom XSLT to render the content.
 
New Post
1/29/2013 9:48 AM
 

Mike,

Appreciate the response.

I need to send the data captured in the form to my "middle tier" web service, and so I have to obtain the values from the from and shape the call.   Actually, I am not really interested in the data that has been placed in the DNN FnL database.  I was really hoping to use the module to simply capture the data in Form fields and then have DNN hand them to me so I can call my middletier service with them.

Anybody know if this is doable?

If not your idea might be my fallback plan.  I would have to ensure the "context" of the form is known on redirect, however.   How do you make F&L module display "only the newest record"? 

Thanks,
Rod

 
New Post
1/29/2013 2:07 PM
 
Rod,
It sounds to me, then, that you want to create a custom module.
In regards to displaying only the newest record, set the sorting to Created At DESCENDING and then limit Records Returned to 1. (List Settings)
 
New Post
2/1/2013 11:07 AM
 

Thanks!

I will give that a try!

Rod

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListHow to access the data in the Form on Submit?How to access the data in the Form on Submit?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out