cancel
Showing results for 
Search instead for 
Did you mean: 

Checkbox - Prints label twice

Checkbox - Prints label twice

Hi There,

 

I am trying to add a checkbox to the checkout shipping form using plugins and it is printing the label twice, code below:

 

$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']['shippingAddress']['children']['shipping-address-fieldset']['children']['delivery_address_different'] = [
'component' => 'Magento_Ui/js/form/element/abstract',
'config' => [
'customScope' => 'shippingAddress',
'template' => 'ui/form/field',
'elementTmpl' => 'ui/form/element/checkbox',
'options' => [],
'id' => 'delivery-address-different'
],
'dataScope' => 'shippingAddress.delievery_address_different_check',
'label' => 'test',
'provider' => 'checkoutProvider',
'visible' => true,
'validation' => [],
'sortOrder' => 130,
'id' => 'delivery-address-different'
];
2 REPLIES

Re: Checkbox - Prints label twice

Hi @abhimarkan,

 


Since this has been posted several days ago, I would like to know if you were able to find the solution.


Please let us know.
Best regards.
Gabriel

If my answer was useful, please give "Kudos" to this post.
If my answer helps you to resolve the problem, click on "Accept as Solution".

Re: Checkbox - Prints label twice

Hi @Gabriel Guarino

 

Thanks for checking, no I wasn't able to find any solution I'm afraid.

 

Cheers!