I have a layout which will serve as an input form for data,
With filemaker you have the option to have the database save data with every key pressed on the keyboard or you can have the option of FileMaker asking the user if they want to save the data.
In my case, i would like to have the user input data and then
have a submit button which i would have a script running when the button is pressed, i will have filemaker automatically save as the user enters data (which the user will have no idea since there will be a submit button).
The way i intend to have this script run is, there will be a custom dialog box asking the user if they would like to submit to save the record where they will either choose yes, no, or cancel (cancel so they can make further changes). If they choose yes i would just have filemaker direct the user back to the view only mode with the record they have just made being the record that is shown. If the user chooses no
i would delete the record and then redirect the user back to the view only or into the input layout with an empty form.
The problem i am having is that i do not know how to link the buttons from my custom dialog to the rest of the script, such that an if statement will be checking which button has been pressed (yes, no, cancel).
i am using filemaker 7
With filemaker you have the option to have the database save data with every key pressed on the keyboard or you can have the option of FileMaker asking the user if they want to save the data.
In my case, i would like to have the user input data and then
have a submit button which i would have a script running when the button is pressed, i will have filemaker automatically save as the user enters data (which the user will have no idea since there will be a submit button).
The way i intend to have this script run is, there will be a custom dialog box asking the user if they would like to submit to save the record where they will either choose yes, no, or cancel (cancel so they can make further changes). If they choose yes i would just have filemaker direct the user back to the view only mode with the record they have just made being the record that is shown. If the user chooses no
i would delete the record and then redirect the user back to the view only or into the input layout with an empty form.
The problem i am having is that i do not know how to link the buttons from my custom dialog to the rest of the script, such that an if statement will be checking which button has been pressed (yes, no, cancel).
i am using filemaker 7