Form Widget Reference

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

Form Helper Services

If outside of a controller, you firstly need to define $app.

$app = Concrete\Core\Support\Facade\Application::getFacadeApplication();

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

$form = $app->make('helper/form');

This will give you an instance of the Concrete\Core\Form\Service\Form object, which has helper methods for common 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 = $app->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 = $app->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 Concrete's sitemap or page search.

$html = $app->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 = $app->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 Concrete users from a search interface.

$html = $app->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 = $app->make('helper/concrete/file_manager');

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

API Reference