NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Thys on June 05, 2011, 11:13:59 PM

Title: Validation on a wizard tab
Post by: Thys on June 05, 2011, 11:13:59 PM
On a web form where the tabs are in wizard format, I need to do validation of the fields on a tab when the Next or Previous buttons are pressed. There doesn't seem to be embed points for those - does anyone knows where I can add these checks?

Thys
Title: Re: Validation on a wizard tab
Post by: terryd on June 06, 2011, 01:58:08 AM
Hi Thys
Is there a reason why you don't want to do immediate validation on each field rather then when a tab is completed?
Title: Re: Validation on a wizard tab
Post by: Thys on June 06, 2011, 03:13:14 AM
Seems like IE9 has a problem with immediate validation - doesn't give focus to the field marked with LOC:Invalid. So this is a catch-all I would like to add to the tab fields before it goes to another tab.
Title: Re: Validation on a wizard tab
Post by: Bruce on June 06, 2011, 06:44:20 AM
>> On a web form where the tabs are in wizard format, I need to do validation of the fields on a tab when the Next or Previous buttons are pressed. There doesn't seem to be embed points for those - does anyone knows where I can add these checks?

those buttons function completely in javaScript - so there are no Clarion embed points.

>> Seems like IE9 has a problem with immediate validation - doesn't give focus to the field marked with LOC:Invalid. So this is a catch-all I would like to add to the tab fields before it goes to another tab.

This was fixed in the 5.27 build.

cheers
Bruce
Title: Re: Validation on a wizard tab
Post by: Thys on June 06, 2011, 10:30:24 PM
Thanks Bruce.
Title: Re: Validation on a wizard tab
Post by: Bruce on July 13, 2011, 07:38:58 AM
>> On a web form where the tabs are in wizard format, I need to do validation of the fields on a tab when the Next or Previous buttons are pressed. There doesn't seem to be embed points for those - does anyone knows where I can add these checks?

An option has been added to the "Validation" tab for forms. (Version 5.30)
Wizard: Validate Tab on Next.
If this is ticked on, then server side validation is performed on the fields (on the tab) before the user can go to the next tab.

Cheers
Bruce