14
Views
3
Comments
Solved
Change input backround colour
Service Studio Version
11.10.4 (Build 36716)

Hello All,

in my application, i have an input widget which is enabled per condition. 

My request is, only for the cases which the input widget is enabled, then i want the backround colour to be red. And if the user input any value, then the backround colour to change to blue.

Any advice/idea? 

Note that i am not familiar with css, so your support is highly appreciated.

Rank: #151
Solution

Hi George,

A possible solution is create 2 class in CSS sheet editor:


after, create this condition in your input:


Result:

.OML in attachment.


Regards.

Example.oml

Rank: #2389

Thank you for your reply, but i forgot to refer how the test will be in white colour for the cases in which the input widget is enabled.

Champion
Rank: #271

Hi George,

You just need to put following condition in your Attributes property of the input as per Enabled condition of input.

Like in my case IsInputEnabled variable is for Enabling and disabling of input.

I have two classes also, which i'm changing as per the condition as below:

class = If(IsInputEnabled,If(TextVar <> "","blue","red"),"")


Here i have attached an OML file for your reference, Hope it helps.

Thanks!!

InputBackgroundChange.oml