NetTalk Central

Author Topic: Change the form submit action after GenerateForm was called  (Read 3186 times)

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
Hi,

I have a login form that could route the user to one of two different web form procedures. But the submit action is already set up in the beginning of the Login procedure - when GenerateForm is called. Is it possible to make this when the Login button is pressed?

Thys

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Change the form submit action after GenerateForm was called
« Reply #1 on: July 17, 2011, 06:20:01 AM »
Hi Thys,

The point is, you probably don't want to make a decision until _after_ the user has clicked on Save. So even if there was a way it'll still be too late.

The usually technique for handling this situation is to rather go to a NetWebPage, and on the page include bothy forms (with a condition which determines which one gets called.)

cheers
Bruce

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
Re: Change the form submit action after GenerateForm was called
« Reply #2 on: July 17, 2011, 11:49:00 PM »
Thanks Bruce. I figured out that it could be done on a next page. Your explanation is a bit fague - should both forms be on a NetWebPage (how?) or should the NetWebPage decide which of the forms to load?

Thys