Dashboard object with conditional formatting. To hide or make grey the object on the dashboard depends on conditions?

OSAdmin
Valued Contributor
Originally posted by Evgeniy Galanzovskyi

3/11/2020

Example, make the Button not visible if WFPeriod is Jan.

1 REPLY 1

OSAdmin
Valued Contributor
Originally posted by Jon Golembiewski

This is possible through an XFBR rule. Something like this should work:
Else If args.FunctionName.XFEqualsIgnoreCase(""ButtonVisible"") Then
'Pull in the workflow time
Dim wfTime As String = args.SubstVarSourceInfo.WFTime
'Check the condition and return the format value
If wfTime.XFContainsgnoreCase(""Jan"") Then
Return ""IsVisible = False""
Else
Return ""IsVisible = True""
Then, you call the rule in the Button Component format property:
End If

0e1679fcdb80a0903d86c68913961949.png