I have a "RequestorJobTitle" text field that looks up the current user's Job Title using this formula:
Thank you @Gochix. This works perfectly! Thank you so much.
@Jambou ,
use:
If(
Or(
!IsBlank(Find("Manager", RequestorJobTitle.Text)),
!IsBlank(Find("Director", RequestorJobTitle.Text)),
!IsBlank(Find("Vice", RequestorJobTitle.Text)),
!IsBlank(Find("Chief", RequestorJobTitle.Text))
),false,true)
_____________________________________________________________________________________
Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!
Thank you @Amik ,
I tried adding this to the Visible property and it's doesn't work.
Hi @Gochix ,
I tried this and it works for "Manager" but how can I get it to work with the other values "Director", "Vice" and "Chief"?
I tried this and it does't work:
If(!IsBlank(Find("Manager",txtRequestorJobTitle.Text)),false,true Or !IsBlank(Find("Director",txtRequestorJobTitle.Text)),false,true Or !IsBlank(Find("Vice",txtRequestorJobTitle.Text)),false,true Or !IsBlank(Find("Chief",txtRequestorJobTitle.Text)),false,true)
@Jambou - in addition to the solution from @Gochix, apply the below to the Visible property:
!Office365Users.MyProfile().JobTitle in [
"Manager",
"Director"
"Vice",
"Chief"
]
Note the absence of the IF function. Given the Visible property only accepts a Boolean (true/false), there is no need to wrap an IF function around a formula which is already going to return a Boolean anyway.
@Jambou ,
As you are mentioning that you want to hide another field if the RequestorJobTitle.Text contains specific word, then you don't have to filter through the Office365Users again, but rather the JobRequestorJobTitle.Text.
If(!IsBlank(Find("Manager",RequestorJobTitle.Text)),false,true)
_____________________________________________________________________________________
Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!
WarrenBelz
146,596
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,928
Most Valuable Professional