Documentation > CMS Template API Library > InputForm > RemoveByPrefix(String)

RemoveByPrefix

Add all fields starting with the prefix to the list of fields to be removed.

public System.Void RemoveByPrefix(String)

Parameters

NameDescriptionType
fieldNamePrefix The field name prefix. System.String

Code Example

C#

Sample:

            
            //Removing all temp variables
            context.InputForm.RemoveByPrefix("temp_");
            
            

Connect with Crownpeak