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

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

Parameters

NameDescriptionType
name name of the hidden field System.String
value AssetType used to initialize the hidden field CrownPeak.CMSAPI.AssetType
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.AddHiddenField("field", AssetType.File);
            
            

Connect with Crownpeak