brycare Posted November 8, 2004 Posted November 8, 2004 Hi. This is my first post to this site.Not sure if I'm in the correct thread for this post but here goes... I am trying to get the user to Input numeric information into 2 global fields, say Global1 & Global2, by using the Input Fields option of the ShowCustomDialog feature. Howver, the information does not seem to be saved to the fields after performing this script step. Eg. Set Field (Global1, 0) Set Field (Global2, 0) ShowCustomDialog("Enter the 2 numbers:", using Global1 & Global2 as the input fields) If I choose say 65.7 for Global1 & 33.9 for Global2 in this dialog, when I subsequently check their contents, they both stay as 0 instead of 65.7 & 33.9 Anyone got any ideas why this is happening?
MoonShadow Posted November 8, 2004 Posted November 8, 2004 Only the default button (1) will write the values to fields. How are you buttons defined?
brycare Posted November 8, 2004 Author Posted November 8, 2004 Thanks for that help.I had swapped the default buttons around, as I usually have Cancel as button 1 and Continue as button 2 in normal message dialog boxes (so that if they click on the X to close down the dialog box it will act as though they had cancelled the operation). It works fine now after swapping the button order back. Thanks again.
Ender Posted November 8, 2004 Posted November 8, 2004 This behavior is one of my pet peeves. I'd like the other buttons to (optionally) be able to accept the values too.
QuinTech Posted January 6, 2005 Posted January 6, 2005 That is completely ridiculous! What's more ridiculous is that there is no reference to this in the help file or filemaker.com. Thanks, Mike, for sharing this. You saved me 59 grey hairs today. Did you find this out through trial and error, or what? J
Ender Posted January 6, 2005 Posted January 6, 2005 Learned that one while trying to add a Change Password button to my custom login dialog. Thought it would be easier if the system kept the Username that might already be in the login window, but discovered that it didn't work. I think I saw this documented somewhere.
Recommended Posts
This topic is 7264 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