Knowledge Management

How to write a validation expression for a macro?

rajgowd1
Communicator

Hi,

i have defined macro like services($searchterm$,$mng$,$fng$)

how can we write validation expression? if we don't mention $searchterm$ while searching, it displays with validation message.

1 Solution

sundareshr
Legend

Try this

Validation expression: isnotnull($searchterm$)
Validation error message: The search term value that you have provided is not valid. Enter a valid search term.

View solution in original post

0 Karma

sundareshr
Legend

Try this

Validation expression: isnotnull($searchterm$)
Validation error message: The search term value that you have provided is not valid. Enter a valid search term.
0 Karma

duartet
Path Finder

It's not working for me. Maybe something changed since 2016?

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...