Add TWO options when No Results Found (AJAX)


I would like to show two options when no results are found:

  • “Create new XXXX”
  • “Advanced search XXXX”

For the first option I’m using this and it works:

			tags: true,
			insertTag: function(data, tag){ = -1;
			templateResult: function (myitem) {
				if ( {
					var $span = $("<span><i class=\"fas fa-user-plus\"></i> Crete new '" + myitem.text + "'</span>");
					return $span;
					return myitem.text

But I don’t know if it is possible to add a second option after that one.

Is it possible?