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 ListRepeated form submit with field initialized via querystringRepeated form submit with field initialized via querystring
Previous
 
Next
New Post
9/21/2010 4:27 PM
 
Hi,
I'm using FnL as a form to load new records in my table.

To start inputting data, the form page is called with a "key field" value set as a querystring (i.e. adding "?param=xxxxxx" to the url), so that the related field value is initialized by the FnL module using the "default value" property by means of the [Querystring:param] token.

Ok, here's the problem: after submitting the first new record, I would like to go on loading data keeping the same querystring value but I see that it is stripped away from the page url.
 
Nor I cannot get the full URL (i.e. including querystring) to create a proper link under the form for the user to click on it after the first submit, so to continue.

Anybody has an idea?

Thanks in advance.

Alberto Mensi, Italy
 
New Post
9/25/2010 8:14 AM
 
Well, I finally fixed it on my own.

As the problem could be reduced to:
 
- acquiring the full url of the page, including the querystring (that cannot be read via the [Tab:FullUrl] token)

avoiding the user to click the submit button of the form after the "initial" querystring has been lost (causing the following rows in the table not to have the related form field initialized by the above said querystring as desired)

I used this workaround to solve:

1) configured the Form Settings of the FnL module to display Show text only after data submission (e.g. "Data have been stored"), thus preventing the form to be displayed again causing the loss of the querystring

2) added an HTML module on the bottom of the FnL module to show a link for the user to continue data entry (e.g. "Click here to add new data"), in which the HREF value of this link is set to the value " self.location.href=self.location.href", to force DNN to reload the form with the complete "original" url

Alberto Mensi, Italy
 
New Post
9/25/2010 9:13 AM
 
Sounds reasonable.
I think you can also  add the link to the text which is shown after submission.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListRepeated form submit with field initialized via querystringRepeated form submit with field initialized via querystring


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