July 29, 200124 yr Newbies Not sure if this topic belongs here or in the scripting area, but here goes. Background: I have a field that requires validation. When a user clicks on a button to enter a "New Record" I give them a message to continue or cancel, if they continue I issue a New Record script step. Note: these users cannot perform "deletes" of records. Question: Now they are in the input screen, but what if they want to cancel without putting in a new record? I tried putting in a "Cancel" button that turns on Set Error Capture and then capturing "509". I thought if I captured it and then redirected them to another screen it would work, but it doesn't. It still is performing validation rules. This must be a common thing to do and I just cannot find a way to do it. Any suggestions? TIA, Craig
July 30, 200124 yr Once the "New Record" script step has been executed, a record has already be created. If you wish to validate BEFORE a record is created, you need to create duplicates of your entry fields as global field. Allow the user to enter into the global fields. When the user hits the "enter" button, validate the entries in the global fields, if ok, create a new records and copy the global fields to the real fields. If the user hits "cancel" just clear the global fields. -bd
Create an account or sign in to comment