CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Problems setting up field validation on a form

Print topic Send  topic

Author Message
Mark
Posted: 06/23/2002, 6:33 AM

Hi,

Having problems setting up field validation on a form ...

I have a text field which I want to validate.
I click on the control, then Events on the Properties palette, select Client, On Change & add an action - Validate Entry
I complete the settings as needed
I then click on the Insert button for the form, go to Events, select Client, On Click, and add an action - Validate Form

I then save the project & click on Live Page to test the form.

In the Messages window, I get "Warning: Action style sheet is not found."

Then I test the live page & the validation is not performed !

Any settings in the Data Properties section, e.g. Required = Yes, works ok.

Why is my validation not working?
Have I put actions in the right place?
Is the Style sheet warning relevant & how is this corrected?

Any help much appreciated !

Thanks,
Mark

CCS v1, PHP4, MySQL
CodeCharge Support
Posted: 06/25/2002, 11:45 PM

Mark,
Please refer to response in the support system
kangus
Posted: 08/15/2002, 5:00 PM

Warning: Action style sheet is not found.
What is the deal????
When I search on the above error I find no information....
Hello,
Posted: 08/16/2002, 3:10 AM

Nicole
Posted: 08/16/2002, 3:10 AM

Hello,
could you provide more details about the issue?
All I understand is that you using client side validation.
Just in case, to perform validation for the field on the form:
- assign 'Validate Form' action for the form onSubmit event;
- then assign 'Validate Entry' action for of field events.
kangus
Posted: 08/16/2002, 10:54 AM

Nicole, using your example CSS created:
<script language="JavaScript">
//Begin CCS script
//Include JSFunctions @1-DA3E7A20
</script>
<script language="JavaScript" src="functions.js">
</script>
<script language="JavaScript">
//End Include JSFunctions
//page_TestCalendar_OnSubmit @2-62C8B14D
function page_TestCalendar_OnSubmit()
{ var result;
//End page_TestCalendar_OnSubmit
//Validate Form @18-673B0798
result = validate_form(this);
//End Validate Form
//Validate Entry @19-ADF7ABAC
this.ccsRequired = true;
this.ccsMinLength = 2;
this.ccsMaxLength = 22;
this.ccsCaption = "";
//End Validate Entry
What entry does this check? I could not find any means of telling CCS what element I want validated using your example. Your example did solve one issue: Action Style sheet warning went away.

By the way, I do not want to check anything at the OnSubmit time, when an element is changed I want to get the correct data then and not wait until they hit the submit button then tell them they have n~ elements with the wrong formatting or data....

   


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.