close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How do I create a back button and keep data on a multiple page form

Thread began 8/11/2013 1:51 pm by info4753 | Last modified 8/13/2013 8:35 am by info4753 | 1923 views | 3 replies |

info4753

How do I create a back button and keep data on a multiple page form

I've created two pages with data assist where the second page holds the data as an overview and has the insert behaviour. I'd like to create a second submit button to send the data back as a form post in order to fill the form fields on the first page, so the user can change his entered data.

<input name="FormularPage1" type="submit" id="button" formaction="formular_page1.php" value="FormularPage1">

Doesn't seem to work, it fires the basic insert from DataAssist but is not going back to the first form page.

Any ideas how to solve this? Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

First, you will nee to store the original form values in session variables.

on the second page, go to the bindings panel, click the plus button and select From Data. Click the folder icon and select the first form page.

this will add a bindings group to the second page for the form elements on the first page.

On the server behaviors panel, click the plus button and select WebAssist -> eCart -> General -> Set Session value.

For the trigger, click the lightning bolt icon and expand the binding group for the form from the first page and select the submit button form that form.

For the value, click he lightning bolt icon and expand the binding group for the form from the first page and select the first form element, set the name of the session to the same name as the form element.

repeat this for each form element.

for the back button, use a standard button type and an href link around it:
<a href="formular_page1.php"><input name="FormularPage1" type="button" id="button" value="FormularPage1"></a>

Now ont he first page, set the value or each form element to use the corresponding session binding

Sign in to reply to this post

info4753

Thanks a lot Jason.

Sign in to reply to this post

info4753

This post has been deleted.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...