cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jupyter123
Helper IV
Helper IV

how to change font size and color of hint text in text property

i have 2 quick question

how do i change the font size and color of a hint text in text property

and another question i have is 

how can i have 2 if statement in a display mode of submit button?

see the picture below

Jupyter123_0-1668774366605.png

it shows error currently

1 ACCEPTED SOLUTION

Accepted Solutions
Sundeep_Malik
Community Champion
Community Champion

Hey @Jupyter123 

 

For the Hint Text, it will have the same font size as of the normal text you want to enter in it. And the color cannot be changed.

 

For the two if statements, you just write && between them, if your require both of them to be true otherwise you can write || if you want it to be visible if one is true.

Something like below:

 

Sundeep_Malik_0-1668776182469.png

 

So, in your case it can be like:

 

OR Case:

 

If(
varCount < 3 ||
!IsBlank(TextInput1.Text)
,
DisplayMode.Edit,
DisplayMode.Disabled
)

 

And Case:

 

If(
varCount < 3 &&
!IsBlank(TextInput1.Text)
,
DisplayMode.Edit,
DisplayMode.Disabled
)

View solution in original post

2 REPLIES 2
Sundeep_Malik
Community Champion
Community Champion

Hey @Jupyter123 

 

For the Hint Text, it will have the same font size as of the normal text you want to enter in it. And the color cannot be changed.

 

For the two if statements, you just write && between them, if your require both of them to be true otherwise you can write || if you want it to be visible if one is true.

Something like below:

 

Sundeep_Malik_0-1668776182469.png

 

So, in your case it can be like:

 

OR Case:

 

If(
varCount < 3 ||
!IsBlank(TextInput1.Text)
,
DisplayMode.Edit,
DisplayMode.Disabled
)

 

And Case:

 

If(
varCount < 3 &&
!IsBlank(TextInput1.Text)
,
DisplayMode.Edit,
DisplayMode.Disabled
)

EdViegas
Super User
Super User

1. I think is not possible

2:

If(
  Or(
    varCount < 3,
    !IsBlank(TextInput1.Text)
  ),
  DisplayMode.Edit,
  DisplayMode.Disabled
)

Btw you can write n conditions like

If(
  condition 1,
  do this,
  condition 2,
  do this,
  condition n,
  do this,
  do this // else action
)

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,667)