<no value> when I put anything that is not {{ index .Fields "value" }} in kapacitor's message alert

As the title says, when the alert message has to report any data that is different from {{ index .Fields “value” }} it will always report <“no value”> even if it is present in the influx db to which kapacitor is connected. I don’t know what to do, I tried to modify the TICK script too (var db = 'progettogr'var rp = 'autogen'var measurement = 'dns_table' - Pastebin.com) but probably I don’t know how to do it properly. I hope someone can help me, thanks in advance.