I have one text input field in my dashboard. It is a mandatory field.
Want to make sure there is some value in it before getting submitted.
But it takes blank too and gets submitted.
Like when we click on the text field and not enter any value too its considering as value and getting submitted.
I tried "searchwhenchanged" not working
and "Prefix and Suffix" too not working.
<input type="text" token="abc" searchWhenChanged="true"><label>abc</label><change><condition match="$value$!="*""></condition></change><prefix>NOT (</prefix><suffix>)</suffix></input>
Want to have some value , it should not take blank spaces alone also...
Thanks this solution works like if i am not giving any value in the input text and submitting it, it is not submitting. but can there be a prompt that no input in it? is it possible?
One more thing is that if i just click on the text field and give submit it is getting stored as empty. just the click of cursor is taking an input. its an exception case.
You can try something like this.
<input type="text" token="abc">
<query>| makeresults | eval myVal="$tmpAbc$"</query>