Form Widget Reference

The following service objects offer an easy way to build HTML input elements and custom Concrete5 interfaces. These can be useful in custom dashboard pages and block editing interfaces.

Form Helper Services

Some HTML helper functions exist as a part of the Form service.

$html = Core::make('helper/form');

This will give you an instance of the Concrete\Core\Form\Service\Form object, which has helper methods for comment HTML form elements like input, checkbox, etc…

API Reference

Custom Color Form Widget

Create a custom widget that allows you to select a color.

$html = Core::make('helper/form/color');

Returns an instance of Concrete\Core\Form\Service\Widget\Color.

API Reference

Date/Time Calendar & Time Selector Widget

Create a custom widget that allows you to choose dates on a calendar, with an optional time..

$html = Core::make('helper/form/date_time');

Returns an instance of Concrete\Core\Form\Service\Widget\DateTime.

API Reference

Page Selector Widget

Create a custom widget that allows you to choose a page from Concrete5's sitemap or page search.

$html = Core::make('helper/form/page_selector');

Returns an instance of Concrete\Core\Form\Service\Widget\PageSelector.

API Reference

Rating Widget

Create a custom widget 1-5 star rating widget.

$html = Core::make('helper/form/rating');

Returns an instance of Concrete\Core\Form\Service\Widget\Rating.

API Reference

User Selector Widget

Create a custom widget that allows you to choose Concrete5 users from a search interface.

$html = Core::make('helper/form/user_selector');

Returns an instance of Concrete\Core\Form\Service\Widget\UserSelector.

API Reference

File Manager Selector

Create a custom widget that allows you to choose files from the file manager. Choose from all files or limit by type.

$html = Core::make('helper/concrete/file_manager');

Returns an instance of Concrete\Core\Application\Service\FileManager.

API Reference

Loading Conversation