Custom form field example
How to create custom form field
Features
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.
Install
- 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.
Usage
- Navigate your browser to http://example.com?sa=CustomFormField
- Browser will display a form with custom on/off field.