Documentation > CMS Template API Library > Input > AddHiddenField(String,String,Boolean)
AddHiddenField
Add a hidden input field to the form with the given name and string value
public System.Void AddHiddenField(String,String,Boolean)
Parameters
Name | Description | Type |
---|---|---|
name | name of the hidden field | System.String |
value | string used to initialize the hidden field | 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.AddHiddenField("field", "string");