Hi Comunity
I have some problem with input token in XML forms. The following code is working:
<form>
<label>Update IP Blacklist</label>
<description>Expired Bsp.: 60m, 24h, 8d, 2w, 1mon</description>
<fieldset submitButton="true" autoRun="true">
<input type="text" token="Expired">
<default>2w</default>
</input>
<input type="text" token="CLIENT_IP">
<suffix>" | eval CLIENT_IP_BLACKLIST = 1 | eval CLIENT_IP_BLACKLIST_EXPIRY = relative_time(now(), "+2w") |...
...
and the following code does not: (the difference is at the end. I replaced the "+2w" with $Expired$)
<form>
<label>Update IP Blacklist</label>
<description>Expired Bsp.: 60m, 24h, 8d, 2w, 1mon</description>
<fieldset submitButton="true" autoRun="true">
<input type="text" token="Expired">
<default>2w</default>
</input>
<input type="text" token="CLIENT_IP">
<suffix>" | eval CLIENT_IP_BLACKLIST = 1 | eval CLIENT_IP_BLACKLIST_EXPIRY = relative_time(now(), "$Expired$") |...
...
After I replaced that, I get the Error: "Unbalanced quotes." on the Dashboard. I tried it also with $Expired$ (without quotes) and $Expired|s$. Allways the same.
Has anyone a hint for me?
... View more