June 26, 200025 yr I have a file that gathers customer information. I have it set up to require fields and give error messages when the fields are not filled in. This works great when the user is entering information for the first time (using the -new command) but it does not pick up the error when editing the record (using the -edit command). For instance, if they are required to enter a user name, when they create an account the first time and they leave out the user name the program will tell them so and will not continue. However, later in the program, if they edit their user information and decide to delete their user name and click continue, it will act as though everything is fine and go on to the next step. Is there a reason it's doing this? For a more difficult question... Is there a way to tell the user which field they left blank rather than just showing the generic "you left one or more required fields blank, please go back and double check" type of error message? Can I get the CDML to capture which field was left blank and give a more specific error message?
July 3, 200025 yr You may try writing a script which checks each field and which would use an exit script message to cause the error message to appear. If [field1 = ""] Exit Script Else If [field2 = ""] Exit Script Else ... ... End If Then command the script from your format file. Peace Keith M. Davie
July 3, 200025 yr Newbies Why don't you just use javascript and have the fields needing to contain a value?
July 3, 200025 yr Author quote: Originally posted by craso: Why don't you just use javascript and have the fields needing to contain a value? Because I don't know Java.
August 8, 200025 yr Get Dreameaver, all that stuff is built in! I have not had a problem with the error pages not coming up. Check your syntax again. Show us the code you are using?
Create an account or sign in to comment