smishler Posted January 3, 2007 Posted January 3, 2007 I have built a simple survey that I intend to administer using IWP. I want to require that a field is not empty before the user moves to the next question, so I am using the following script: If[survery::q1_result = ""] Show Custom Dialog ["Error";"Please complete the fields on this page."] Else Go to Layout ["Survey_p2"] End If Problem is, of course, Show Custom Dialog is not IWP compatible. I started out with field validation but that did not seem to work as the error was produced for all questions on the first question layout. Any suggestions? Thanks.
T-Square Posted January 4, 2007 Posted January 4, 2007 My only solution to this problem was to use separate layouts and fragment scripts around them. If you're talking about a bunch of standardized error messages, you could set up a single error layout and select the appropriate error message from an errors table. HTH, David
smishler Posted January 8, 2007 Author Posted January 8, 2007 Thanks, this might work. I only have the one error message (Please complete the survey question before preceeding) and I can return the user to the previous layout (the survey question).
Recommended Posts
This topic is 6866 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