NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Thys on July 17, 2011, 02:46:38 AM

Title: Change the form submit action after GenerateForm was called
Post by: Thys on July 17, 2011, 02:46:38 AM
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
Title: Re: Change the form submit action after GenerateForm was called
Post by: Bruce 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
Title: Re: Change the form submit action after GenerateForm was called
Post by: Thys 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