Documentation > CMS Template API Library > InputForm > SaveContentField(String,String)

SaveContentField

Adds or edits a form field before committing to the DB These fields will be committed after the post_input template file runs.

public System.Void SaveContentField(String,String)

Parameters

NameDescriptionType
name The name of the fieldname System.String
value The value to set the fieldName to. System.String

Code Example

C#

Sample:

            
            context.InputForm.SaveContentField("the_answer","42");
            
            

Connect with Crownpeak