I have an iPad setup and I want to render a layout's background inactive.
I don't want FM to attempt to save when a person clicks out of a field.
I found one way:
Make a transparent button that does nothing that sits over the entire layout. Bring it to front. And then bring to front only the fields I want to be available.
Cover the layout with a transparent button. Move it back behind other objects. Select a “do nothing” single action such as Resume Script.
One of the easier ways is to use a blank webviewer instead of a transparent button. No need to set a button action and in layout mode it will be very obvious that there is an object because of the webviewer 'logo'
Last time I tried a blank web viewer, I couldn't make it invisible in FileMaker Go.
Great suggestions here!
Another option is to have a onRecordCommit triggered script that cancels the commit action unless a condition is met. Something like :
If [condition is not met]
Exit script [Result: False]
I would use a global variable to control the behavior. A second script that I can assign, say to a save button, would set the global variable to true, commit the record and then set back the variable to false or a null value.
Be aware that if you use this technique, navigating to other layouts, closing windows, going to layout mode and all actions that implicitly commit the record won't execute, unless the condition is met.
If you are using FM16 another possible option is to use a Card Window. This automatically renders the parent window inaccessible while it is open, and for added effect you can set the parent window to dim. I'm not sure how this would work on an iPad, but I assume much the same.
But they don't want to be locked out of the entire layout, they just don't want to accidentally commit a record by tapping a blank area of the layout....
I also just learned how to disable the iPad keyboard tool bars.
On file open, if signed in as "iPad" (or whatever one uses) under file options, script triggers, OnFirstWindowOpen:
Retrieving data ...