Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Closing an Inform Box

 [1/6] from: info::id-net::ch at: 11-Apr-2002 14:56


Hi ! I really need an answer ! In my application, i checked some fields filled by the user, and if the fiels is not good filled, an inform box appears with a new field that the user must fill. But if the user choose to close this inform box, my database add the informations without the error field. It's because the closing of a inform box didnt produce anything (i.e a closing of a alert box produce "none") that i can't trap this error. What are your solution, guys! What are you doing when the user makes errors on fields. Philippe

 [2/6] from: brett:codeconscious at: 11-Apr-2002 23:26


> What are your solution, guys! What are you doing when the user makes
errors
> on fields.
How about changing the colour of the field to yellow or orange to indicate that the value is invalid? Then you don't need a new window popping up. Brett

 [3/6] from: info:id-net:ch at: 11-Apr-2002 16:55


That could be an opportunity (focusing back to the field) but how can you stop the process. I mean the user fill 5 fields then he press a button to validate. The checking process is done when he press the button. If there is an error, i can focus back to the field but how can I make to tell the process to be stop and wait on the user to correct.. Philippe

 [4/6] from: petr:krenzelok:trz:cz at: 11-Apr-2002 18:46


Philippe Oehler wrote:
>That could be an opportunity (focusing back to the field) but how can you >stop the process. >I mean the user fill 5 fields then he press a button to validate. The >checking process is done when he press the button. >If there is an error, i can focus back to the field but how can I make to >tell the process to be stop and wait on the user to correct.. >
I don't understand ... :-) you just described your solution, no? If you return process back to the field, then the process will stop, and you will be able to correct info entered in the field. I have to be missing something .... view layout [f1: field f2: field button "Start action" [if f1/text = "a" [focus f1 return] print f2/text]] if you enter "a" in the first field, you will be focused back, and nothing is printed ... if you enter anything else, then f2 field content is printed .... -pekr-

 [5/6] from: greggirwin:mindspring at: 11-Apr-2002 11:58


Hi Philippe, << In my application, i checked some fields filled by the user, and if the fiels is not good filled, an inform box appears with a new field that the user must fill. But if the user choose to close this inform box, my database add the informations without the error field. It's because the closing of a inform box didnt produce anything (i.e a closing of a alert box produce "none") that i can't trap this error. >> I wouldn't put the new field on the inform box because then it's out of context with the rest of the fields. Just keep the screen displayed and give them the information they need to correct the situation. --Gregg

 [6/6] from: info:id-net:ch at: 12-Apr-2002 9:20


Right, Petr. I didnt use the "return" and the process continued. But in my function of validating, the return doesn't work too. Instead "break" does the job ! Txs. Phil