Documentation > CMS Template API Library > Input > ShowSelectFolder(String,String,String,String,String)

ShowSelectFolder

Displays a "select" and "clear" button that is used to select a folder. Note: Before build 2481, there is a default value for the third argument of the overloaded version of this method. So until build 2481 and higher is available, you will need to pass a third argument to this function.

public System.Void ShowSelectFolder(String,String,String,String,String)

Parameters

NameDescriptionType
label The label. System.String
fieldName Name of the field. System.String
defaultFolder Optional: If none is specified, it will default to the root folder. System.String
helpMessage Optional: The help message. System.String
popupMessage Optional: The popup help message. System.String

Code Example

C#

Sample:

            [
                 <% Input.ShowSelectFolder("Folder", "selected_folder"); %>
                 <% Input.ShowSelectFolder("Folder", "selected_folder2", "/Assets/Images"); %>
                 <% Input.ShowSelectFolder("Folder with Help", "selected_folder3", helpMessage: "Help Message"); %>
            
            

Connect with Crownpeak