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