Stop Search Results from Returning when Hitting Cancel

I have a custom search event setup to return the VendorID, Name, and VendorNum. This mostly works, however if I hit cancel after searching “Search-Value-Set” is returning the blank data from the search results.

Is there to only run Search-Value-Set if the OK is selected in the search window? I messed with a condition statement for awhile, but couldn’t find a valid expression using actionResult or searchResult as the dataview name.

Looking at an out-of-the-box search event, they have a condition after the search-show:

%searchResult.count% === 1

image

1 Like

That was it! Thanks @jwphillips

1 Like