36
Views
4
Comments
How do I disable a text on certain condition?
Question

Hi Community,

I am looking to disable my "*" text when my (OnBehalfSelectedValue =1)

How should I do it?


Rank: #416

Hi Alvin,


you can't disable a simple text expression, because there is no interaction.

If you want to hide it based on OnBehalfSelectedValue =1, you can wrap the expression in an 'If'-widget and put the text expression in the True branch. Add to the if-condition the logic OnBehalfSelectedValue <> 1.

Hans 


Hi Alvin,

To add in, you can also use CSS on that in the Extended Property.
But Hans approach more straightforward.

Thank you and kind regards,

Chris

Rank: #683

Hi Alvin,

As per my understanding, you want to remove * from Name input field, that you can achieve by adding OnBehalfSelectedValue =1 this condition on your Input field mandatory property like below:

Hope it will help you

Cheers,

Krushna