Skip to main content
Question

Testing for Null Value For a Label

  • Jul 4, 2017 10:37 AM UTC
  • 2 replies
  • 15 views

I am using the following label using a URL field  to show a label.  Mark was kind enough to help with this.  Can I hide the label where the Sales Data is returning Null. 

var text Words = "Show Store Dev History and Sales";
var text URL = [Sales Data];

"<a class=\"Vibrant Primary\"a href=" & $URL & ">" & $Words & "</a>" // makes blue
This topic has been closed for replies.

2 replies

  • Qrew Cadet
  • Jul 4, 2017 1:42 PM UTC
var text Words = "Show Store Dev History and Sales";
var text URL = [Sales Data];
If(Length($URL) =0, "Null", "<a class=\"Vibrant Primary\"a href=" & $URL & ">" & $Words & "</a>" )

I hope this will solve your issue !!

  • Author
  • Qrew Corporal
  • Jul 5, 2017 2:18 AM UTC
Many thanks for your kind help.