Commit 6fa665dc authored by ochorocho's avatar ochorocho Committed by Georg Ringer
Browse files

[DOCS] Add example for RadioButton/MultiCheckbox

Add example for elements of type RadioButton/MultiCheckbox.

Releases: master, 9.5
Resolves: #90520
Change-Id: Ifaeac0d2e3ef017aeb717aa52bc7c763ba16e8ef
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63409


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Björn Jacob's avatarBjörn Jacob <bjoern.jacob@tritum.de>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Björn Jacob's avatarBjörn Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
parent ddb362f8
......@@ -266,6 +266,12 @@ Implement a ``FormFactory`` and build the form::
$message->setLabel('Message');
$message->addValidator(GeneralUtility::makeInstance(ObjectManager::class)->get(StringLengthValidator::class, ['minimum' => 5, 'maximum' => 20]));
// Creating a RadioButton/MultiCheckbox
$page3 = $form->createPage('page3');
$radio = $page3->createElement('checkbox', 'RadioButton');
$radio->setProperty('options', ['value1' => 'Label1', 'value2' => 'Label2']);
$radio->setLabel('My Radio ...');
$form->createFinisher('EmailToSender', [
'subject' => 'Hello',
'recipientAddress' => 'foo@example.com',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment