Documentation > CMS Template API Library > Input > ShowAcquireDocument(String,String,ShowAcquireParams,String,String)

ShowAcquireDocument

Displays a "select" and "clear" button that is used to upload a document into the current template.

public System.Void ShowAcquireDocument(String,String,ShowAcquireParams,String,String)

Parameters

NameDescriptionType
label The label of the field when displayed. System.String
fieldName The field name where the uploaded filename will be stored. System.String
acquireParams Customization parameters. CrownPeak.CMSAPI.ShowAcquireParams
helpMessage Optional: help message System.String
popupMessage Optional: The popup help message. System.String

Code Example

C#

Sample:

                            <% 
                                ShowAcquireParams parameters = new ShowAcquireParams();  
                                parameters.DefaultFolder ="/Assets";
                                parameters.Extensions = Util.MakeList("doc", "pdf", "xls");
                                Input.ShowAcquireDocument("Attachment", "attach", parameters) ;
                             %>
            
            	

Connect with Crownpeak