Apply Dynamic style for input Input

Hi ,


I have an two Input text boxes Text1 and Text2 enclosed in their respective containers with width set for each container 6 col.

Incase if I hide Text1 then I like to display Text2 with full width instead of 6 col.

How to apply style dynamically in outsystems?


Thanks,

Ramya

Did you try applying conditional CSS using if ? Something similar to,

"Width: " + If(condition1, "10px", "20px') + ";"


A cleaner way would be to have 2 different classes declined. With the 2 widths and in the class itself do a if in assign where you assign a class based on the condition. And obviously we'll have to refresh the container for the textbox.


Let me know if this helps.


Cheers,

Tushar