Re: Q: FORMS 4.5 when validate item
From: Michael Kustermann <MKUSTERM_at_worldnet.att.net>
Date: 1996/05/08
Message-ID: <4mosh5$odq_at_mtinsc01-mgt.ops.worldnet.att.net>#1/1
Date: 1996/05/08
Message-ID: <4mosh5$odq_at_mtinsc01-mgt.ops.worldnet.att.net>#1/1
chamiltn_at_islandnet.com (Craig Hamilton) wrote:
>Hi
>
> Does anybody know how or if you can exit a screen when a value in an
>item doesn't pass the when-validate-trigger.
>
>
>I have a when-validate-trigger on an item and if it is invalid I raise
>form_trigger _failure. If the user enters an invalid value in this
>field my error message appears and focus is returned to the text item.
>If the user then presses the Cancel button to exit the form the
>validate trigger fires again before any code in the when button is
>exceuted. How do I get it so that if the user wants to exit they can?
>
One strategy is basically...
- Tell there users to blank out the item if they want to abort
- Have the when-validate-item check for nulls first.
- If not null then validate else ignore
Michael Kustermann Received on Wed May 08 1996 - 00:00:00 CEST