I am creating a multi-stage form with ploneformgen. I would like to add a confirmation page showing all the data that has been entered, before the form is finally submitted. Something similar to a thank-you page, but with a submit button.
/Iz
Look at http://pypi.python.org/pypi/collective.pfgpreview
I haven't done this myself, but I think you can probably adapt the "hidden field" technique at http://plone.org/products/ploneformgen/documentation/how-to/create-a-multi-page-form to accomplish this. Combine with how the "thank-you" template displays the submitted fields.
Related
I am looking for the best/easiest way to open/start a new gravity form when the current form fails validation. Example: user enters a zip code that is not valid upon submission. When the form fails validation a second form opens which is used to gather user contact info so they can be notified when their zip code is available.
Does anyone have an answer already to this that I was unable to find in the search or have any ideas as to a solution?
Thanks in advance.
You would have to tap into the action "gform_after_submission" and do a redirect to another page with that form. http://www.gravityhelp.com/documentation/page/Gform_after_submission
Another option would be to provide a drop down list of all the available zip codes with an additional option, like "mine is not in list". Then have some other fields that have conditional logic to only show if the "mine is not in list" value is selected.
http://www.gravityhelp.com/documentation/page/Form_Settings ( look for the conditional logic section)
Hope that helps.
Here is the Mooncake template link: Mooncake template. Has anyone ever used it? I'm trying to apply this template to my ASP.NET website, using ASP.NET controls, but I have some problems about this.
First, in the Forget password menu, when a user clicks the Reset button, it will post back to the server and do some validations. If it doesn't pass the validations, the form will be displayed again with error messages. The problem is when the page reloads, it changes back to the default view, which is Login menu, so I have to change to Forget password menu to see the error messages. How can I make it display Forget password menu directly?
The second thing is how can I apply table format to my grid view? The column of a table in this template can be sorted without posting back by clicking on the header.
Any of your help will be highly appreciated. Thanks in advance :)
One the frontpage of plentyoffish.com, the 'Continue' button (for the form submission) links to register.aspx. From what I can see the system does not use postback. So, my question is, how is the form data posted to register.aspx? What would that code look like?
i'm not sure if we're talking about the same thing here, but the continue seems to be an image type input, which works the same as a submit, and submits the form to register.aspx.
If you look at the html source of the page, you will find the following code
<form method="POST" action="register.aspx" NAME="Register853049" onsubmit="return submitForms(this);">
The action is specified as register.aspx, so when this form is submitted to the server it is submitted to register.aspx
I'm look for a way to pre-populate Asp.net form from E-mail Link. I tried several method such as:
http://www.test.com/ContactUs.aspx?CustID=123
http://www.test.com/ContactUs.aspx?ctl00$ctl00$MainContent$MainContent$CustID=123
http://www.test.com/ContactUs.aspx?ctl00_ctl00_MainContent_MainContent_CustID=123
Our vendor is saying this should work but I'm having no luck with it. If someone can tell me what might be wrong with this or if there is another solution. This is being used for an e-mail campaign so that the user receiving the e-mail does not have to fill the form link is navigating to.
Jamal
You need to add server-side code to populate the fields from the querystring.
An outside vendor did some html work for us, and I'm filling in the actual functionality. I have an issue that I need help with.
He created a simple html page that is opened as a modal pop-up. It contains a form with a few input fields and a submit button. On submitting, an email should be sent using info from the input fields.
I turned his simple html page into a simple aspx page, added runat=server to the form, and added the c# code inside script tags to create and send the email.
It technically works but has a big issue. After the information is submitted and the email is sent, the page (which is supposed to just be a modal pop-up type thing) gets reloaded, but it is now no longer a pop-up. It's reloaded as a standalone page.
So I'm trying to find out if there is a way to get the form to just execute those few lines of c# code on submission without reloading the form. I'm somewhat aware of cgi scripts, but from what I've read, that can be buggy with IIS and all. Plus I'd like to think I could get these few lines of code to run without creating a separate executable.
Any help is greatly appreciated.
If you don't want the page to reload after submission, you will need to use AJAX. that is alot more complicated. you would still need the submit.aspx, you cannot send email with javascript.
Code a redirect after the form submission, so instead of getting the same form back in the main document/page, you could get something like a blank page saying "Thanks for your submission!" or something of that nature.
Might be more simple to redirect the user to a result page using Respone.Redirect that displays some sort of "Your email has been sent" message, or even just redirect back to the base page.