Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to return to previous page

New Here ,
Mar 07, 2009 Mar 07, 2009
I have a form A. Once filled out, they should subnmit to insert the data into a table. However, they can fill out the form and not submt. There is a icon in the upper left that will take them to another form B (comments) to fill out. If they submit form B and insert form B data into a table, how do I return them to form A, which is filled out but not submitted yet ?
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 08, 2009 Mar 08, 2009
Hi Oliva Crazy House,
Well, in my humble opinion, a user should either process form A or Form B one at a time (in either order). But if you absolutly need this requirement, you could make both forms go to the same "action program and :
1) determine which button was submitted and do the appropriate processing. You can then pass URL variables and utlimately cflocation back to the orignal form with the url variable to repopulate the form?

hefterr
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 09, 2009 Mar 09, 2009
thanks hefterr for the replay.

I got it working by passing variables.When I submit from form B, it takes me back to form A, which is what I want.

Now a new problem. If I fill out form A but do not submit and go to form B, then return to form A, how can I keep the values there were already entered, remain on the screen. They are all cleared when I return to form A.

Thanks
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 11, 2009 Mar 11, 2009
LATEST
Hi Olivia and I appologize for calling you "crazy house" instead of "crazy horse" :)

In my opinion, you have to make it all one form or you will loose your form variables when one is chosen versus the other. I don't think there is any other solution. You can have multiple buttons so it appears to be 2 forms to the user - but you physically have to make it one single form. Your action program can detect which button was hit and know which "virtual form: to process. It can also save all the variables as URL variables or session variable.

Hope this helps.

hefterr
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources