Documentation > CMS Template API Library > Input > AddHiddenField(String,AssetType)

AddHiddenField

Add a hidden input field to the form with the given name and assettype, produces "File" or "Folder"

public System.Void AddHiddenField(String,AssetType)

Parameters

NameDescriptionType
name name of the hidden field System.String
value AssetType used to initialize the hidden field CrownPeak.CMSAPI.AssetType

Code Example

C#

Sample:

            
            Input.AddHiddenField("field", AssetType.File);
            
            

Connect with Crownpeak