cancel
Showing results for 
Search instead for 
Did you mean: 

How can I include html in checkbox label?

SOLVED

How can I include html in checkbox label?

Hello,

 

I'm trying to include a link, or you can say html inside a custom field's label I created via LayoutProcessor. It's always parsed as text like Label 

I could not find anywhere instructions for this, even though it should had been a simple thing, please help.


'component' => "Magento_Ui/js/form/element/single-checkbox",

....

'elementTmpl' => "ui/form/components/single/checkbox",

.....
// 'label'=>_('Request 3rd Party <a href="cucubau">Assembly Info</a>'),
'description'=> _('Request 3rd Party <a href="cucubau">Assembly Info</a>'),

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How can I include html in checkbox label?

@itmultimobd453 

You need to create a template of the checkbox and add it using layoutprocessor

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

View solution in original post

2 REPLIES 2

Re: How can I include html in checkbox label?

@itmultimobd453 

You need to create a template of the checkbox and add it using layoutprocessor

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

View solution in original post

Re: How can I include html in checkbox label?

Thanks.