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