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

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,Boolean)

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
alwaysSend Optional: If true, the value of the field will always be sent from the frontend to the backend regardless of whether its state has changed. System.Boolean

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