MarcBauwens Posted October 3, 2006 Posted October 3, 2006 I guess this is easy and that the question has already been asked but I can't see how to do it. I have a client records database with the usual fields like name, address, etc. What I want is that when you trigger the submission script it looks for fields that should be filled with info but are empty and then signals it through a dialog box. For example : the fields 'Address' and 'First name' are empty! Anyone an idea how to tackle this? Thanks in advance.
IdealData Posted October 3, 2006 Posted October 3, 2006 Look at the FIELD VALIDATION when defining your fields (in the OPTIONS). You can set the conditions that the contents of a field must have before accepting the data. viz. Address <> "" (Address is not equal to nothing)
MarcBauwens Posted October 3, 2006 Author Posted October 3, 2006 Yes but the problem with that is that I have multiple dialog boxes popping up if the user forgets multiple fields. The idea is more that at the end of filling out the form, the user clicks a submit button that triggers a script which looks if there are mandatory fields that are empty. If there are empty fields, the user gets a dialog box telling him which boxes are emoty and that have to be filled out before the record is valid.
Genx Posted October 3, 2006 Posted October 3, 2006 ... Why would you have multiple dialog boxes, why not use one? e.g. If[isEmpty(Address) or IsEmpty(Name) or IsEmpty(State)] Show Custom Dialog[Title: "Missing Information" ; "You have failed to fill in the following fields:¶¶ " & If(IsEmpty(Address) ; "Address¶" ) & If(IsEmpty(Name) ; "Name¶" ) & If(IsEmpty(State) ; "State¶" ) ] End If ... you get the gist
MarcBauwens Posted October 3, 2006 Author Posted October 3, 2006 Yup! that's the way to go! Thanks for the heads-up! It was right in front of me but I failed to see the light! Thanks again!
Recommended Posts
This topic is 6628 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now