fm_select_folder


mixed fm_select_folder ( string $message [, string $initial_folder_path] )


 

Description


Allows you to present a dialog asking the user to select a folder.

 

Parameters


message (required)
The message to be displayed in the dialog.

initial_folder_path (optional)
The starting folder for the dialog.

 

Return


Returns the path to the selected folder or false if the user cancels.

 

Errors


315 Function not supported on server

 

Example 1 - Prompt the user to select a folder for upload
$path = fm_select_folder('Please select the folder you want to upload.', FM_DESKTOP_PATH);
echo $path;
/*
Returns: /Users/Scodigo/Desktop/Photos
*/

Change Log

VersionDescription
3.0.0Function now returns error 315 when executed on FileMaker Server.