Changing Style of a label associated with a checkbox on checking

Changing Style of a label associated with a checkbox on checking

  

Hi,

I have 3 checkbox and each of the checkbox have labels associated with it. Right now I want to change the style of labels when respective checkbox is clicked. For this I need to give Id of the checkbox in "for" property in extended properties of labels. But I'm unable to do so. How can we implement html <label>  in outsystems?

Hi, 

You don't need implement a html.

You can create OnChange action and this actions makes update one variable to change the labels style.


You can create css class and in extended property you can put "class" and the value is the name of class what you created. 

For example: If(var = true, " cssclass1 ", " cssclass2")

Hi,


Yes on checkbox changed event u can apply specific style for particular label using one variable.


Thanks!

Please check attached solution.


Hi...Please mark this post as a solution...thanks!

Hi,

I want to implement the same using CSS only. Any solution?


Shashankit Thakur wrote:

Hi,

I want to implement the same using CSS only. Any solution?


Hi Sashankit,

Use extended property the HTML tag will render at runtime as the label,



My Regards,

Pankaj