Title
New Record Request is Comitting Information right away
Post
Hello, I have the following script:
Go to Layout ["Project Data Entry" (T16_Projects)]
Show/Hide Menubar [Hide]
Show/Hide Toolbars [Hide]
New Record/Request
Show Custom Dialog ["Projects"; "Please Enter the Information for this New Project."]
Go to Field [T16_Projects::Project_Name]
The layout "Project Data Entry" in itself already has a Submit button, but regardless when the user is starting to fill out information on this form, I see it in my database regardless of them pressing submit. What can I add to this script that disables this? The script I use for the Submit Button is below:
Go to Layout ["Project Receipt" (T16_Projects0]
Commit Records/Requests[]
Send Mail [.......] (<< to get a notification for myself)
All help is appreciated thanks
Is auto-save enabled for this layout?
Whether or not that option is enabled, clicking the layout background will commit the record. There are two ways to prevent that:
a) Cover the entire layout with a web viewer set behind all buttons and fields. This object will intercept the mouse click and keep the current record from being commeitted.
b) Have the user enter all the data for this new record into global fields, set up your submit button to perform a script that creates the new record and uses set field steps to copy over the data in the global fields into fields fo the new record.