Announcements
Have a text label that auto populates with mobile phone number from 365 connection. I have code to say if blank then add text "Mobile Phone Number". Now if it is populated with a mobile number from 365 i want the text to be Size 13.5 color black and semibold. But if it is blank then add the default text of "Mobile Phone Number" but make the text Size 13.5 color grey and Normal (i.e. not Semibold)
Hi!
In the text color and font weight, you'll want to use the same If(IsBlank(...) function you use to display "Mobile Phone Number", but instead, have the options be:
If(IsBlank(...), FontWeight.Semibold, FontWeight.Normal)
If(IsBlank(...), Color.Black, Color.Gray)
Hope this helps!
This is the code I have but it is currently giving me an error
Also how would i add italic as well
Set the italic property to true/false depending on the IsBlank(...)
I think i need an else argument in there but not sure how to do it i think i need something like
If (IsBlank(lb_mobilePhone),"Office365Users.UserProfileV2(User().Email).mobilePhone"
ELSE
if blank add text
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 394 Super User 2026 Season 2
Mohsin Ali 328
WarrenBelz 324 Most Valuable Professional