CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Validation and changing field type

Print topic Send  topic

Author Message
kburnett
Posted: 05/23/2002, 9:48 AM

I see that this topic has been discussed before. I would just like to make sure that there is no answer to the problem.

The problem as Nicole summarized to another post:
"...changing field type works (update/insert mode), but in case of error message (any field validation), field is changed to label again, and it's content is deleted. In effect, user cannot complete the form."

I just want to verify that we can change a field type in a Before Show event but that event does not occur if form validation returns an error. And as a result I will need to rely on JavaScript validation.

If anyone has a work around, of if I am just way off base, I would apprecitate the feedback.

Thanks,
Kyle
Nicole
Posted: 05/24/2002, 12:29 AM

Kyle,
First of all, these was not my words, but Tomasz'.
Of course, I agree with him. But the workaround exists.

It happens (label fields becomes label) because Before Show event code is executed if s<form_name>Err variable is empty. If it contains error messages, it is not empty, thus Before Show just do not executes.
The workaround is to put this code not into before show even but into Before Show Insert, Before Show Delete and Before Show Update events.

kburnett
Posted: 05/24/2002, 3:15 PM

Nicole, my appologies on the misquote.

Thanks for the answer. That just made my life a whole lot better.

Kyle

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.