Kentico CMS 7.0 Context Help

New form control

New form control

Previous topic Next topic Mail us feedback on this topic!  

New form control

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

When creating a form control, you can use the radio buttons at the top of the page to choose if you wish to create a completely new form control or inherit from an existing one. Inherited form controls work the same way as their parent, but you may change the configuration of their general settings and set different default values for their properties (parameters).

 

The following values can be specified when creating a control:

 

Display name

Sets the name of the form control used in the interface, e.g. when selecting a control in the field editor.

Code name

Sets the name of the control that is used as its unique identifier, for example in the API. Unless you wish to set a specific code name, you can leave the default (automatic) option and the system will generate an appropriate one based on the display name.

Type

Allows the selection of a category under which the form control will be placed. The type can be used to filter form controls.

File name

Contains the relative path to the .ascx file that implements the form control.

 

Example: ~/CMSFormControls/Basic/TextBoxControl.ascx

Inherit from

Allows you to select the form control from which the new one should be inherited.

 

This field replaces the File name if you choose the Inherit from an existing form control option. The source file of the parent form control will be used in this case.

 

More resources can be found in:

 

Developer's Guide -> Development -> Form controls

Developer's Guide -> Development -> Form controls -> Developing form controls