It sounds like you are referring to "Show Custom Dialog". With show custom dialog, you can specify up to three "input fields" in your dialog. You can set these to store data in fields in an existing record or specify global fields, check for errors, create the record and use set Field to copy the contents from the global fields to the new record.
There are significant limitations to using input fields in this dialog:
- You can't format the input fields with value lists
- Field validation error checks will not take place.
Some clever developers have figured out how to use New Window to pop up a modal dialog. This approach can be a bit "clunky", but it does avoid the above two issues.
The New window technique:
Use new window and other window commands to open a small, new window,
Use Go to layout to select the layout for your pop up dialog.
hide the status bar.
don't allow user abort
pause the script.
After the pause, enable user aborts, process the data (you might be using global fields like I mentioned earlier in this post.), and close the window.
Define any buttons in this script to perform scripts that enable user aborts, close the window. Select the exit current script option for each button.+
Thanks Phil - yep - I had a bit of a go myself - and the New Window thing is where it seemed to give me most of what I wanted but as you say - had the clunkiness thing going on. The Custom Dialog option is something I think I will play with next. (It is not critical but it was a "wow - I wonder if..." moment!)
Appreciate your comments.
When I upgraded from a much older verions of FMP, I was excited about being able to use input fields in Show Custom Dialog, but now almost never use them due to their limitations.
I've chosen to put up with the clunkiness of New Window approach instead.
In the meantime, I've posted a feature request that FMI add a "modal" parameter to the new window script step.