Brian Dunning's FileMaker Custom Functions

AS_Dialog ( Text ; Button1 ; Button2 ; Button3 ; window_title ; giving_up_after ; default_answer ; hidden_answer ; default_button ; cancel_button ; caution ; result_field )

Generates an dialog box with a number of options

  Average rating: 4.0 (43 votes) Log in to vote

Thomas Siebert   Thomas Siebert - Show more from this author
http://www.t-seabird.de

Share on Facebook Share on Twitter

  Sample input:
Perform AppleScript [ AS_Dialog ( "Are you there?" ; "yes" ; "" ; "" ; "check" ; 3 ; "" ; 0 ; 1 ; 0 ; 0 ; table::field ) ]
  Sample output:
The dialog closes after 3 seconds or by hitting yes returning the choice to a FileMaker Field

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Text = The dialog text
Button1 Button2 Button3 = Button-names. up to 3 Buttons possible. Leave those parameters empty to get standard buttons (OK and Cancel)
window_title = name of the window title bar
giving_up_after = timeout in seconds (empty or 0 means: no timeout) to wait before automatically dismissing the dialog
default_answer = generates an field entry with an default text if you want to. Empty parameter means: no entry field.
hidden_answer = enter 1 for bullets (••••••)
default_button = enter a number for the default button (empty or 0 means: no default button)
cancel_button = the number of the cancel button
caution = enter 1, 2 or 3 to get icon (stop/note/caution)
FMP_Result_Field = A FileMaker-Field to return a result

Use the ScriptStep "Perform AppleScript" using the option "Calculated AppleScript"
You also shall use "Perform AppleScript" directly from a button.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: