Custom form field example

How to create custom form field


Illustrates how to create custom form field that involves JavaScript control.

How it works?

This plugin define OnOffField class that extends general \Ip\Form\Field class and implements render method. In addition to that goes some CSS and JS files. Please read code comments for more details.


  • Upload CustomFormField directory to your website's Plugin directory.
  • Login to the administration area.
  • Go to Plugins panel, locate CustomFormField plugin and click activate button.


  • Navigate your browser to
  • Browser will display a form with custom on/off field.


comments powered by Disqus