Yea, the following code works. It just seems overly complex to check if a
field is empty.
#if ($doc.getValue('processOverview').trim().length() != 0)
= PROCESS OVERVIEW =
<div style="padding-left: 25px;">
$doc.display('processOverview')
</div>
#end
I think the issue is related to the fact that the field is a textArea and
not a string. I have used simpler checks on string fields and they work
just fine.
Thanks for your help :)
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Detect-Empty-Fields-tp7589773p7589779.html
Sent from the XWiki- Dev mailing list archive at
Nabble.com.