Hello experts.
Question from newbie.
I dont find the options for killing this “point” in rendered site.
How can I kill the stringified point after element birthday[‘day’] ???
I define a DateSelect in a Form:
$this->add([
'name' => 'birthday',
'type' => Element\DateSelect::class,
'options' => [
'label' => 'Birthday',
'create_empty_option' => true,
'max_year' => date('Y') - 18,
'year_attributes' => [
'class' => 'custom-select mb-3 w30'
],
'month_attributes' => [
'class' => 'custom-select mb-3 w30'
],
'day_attributes' => [
'class' => 'custom-select mb-3 w30',
'id' => 'day'
]
],
'attributes' => [
'required' => true,
],
]);
CSS:
.w30 {width: 30%!important;}
#day { margin-left: 3px;}
phtml:
<div class="mb-3">
<?=$this->formLabel($form->get('birthday'));?>
<div class="form-group">
<?=$this->formDateSelect($form->get('birthday'));?>
</div>
</div>
output: