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

ShowAcquireImage

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

public System.Void ShowAcquireImage(String,String,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
helpMessage Optional: help message System.String
popupMessage Optional: The popup help message. System.String

Code Example

C#

Sample:

            <% 
            
            
             Input.ShowAcquireImage("Attachment", "attach", "This is the help message." );
             
             // Calling with optional hidden fields parameter so we can save the original. Often used when the upload is made into a thumbnail.
             Input.ShowAcquireImage("Attachment", "attach", "This is the help message.");
            
            
            %>
            
            

Connect with Crownpeak