By: Maz
Date: 2005-11-22
Time: 10:57
|
Why is the text appearing
<div id="errorshow">[onshow;block=div;when [err_msg;noerr]!='']
<p class="errortext"><span class="boldtext">Please Correct the Following Errors:</span></p>
[err_msg;block=begin]
<p class="errortext">[err_msg.val;magnet=p;htmlconv=no]</p>
[err_msg;block=end]
</div> |
Seems to be working to the point where the error messages are only being shows when there are errors. However, the "Please Correct the Following Errors:" is always showing whether there are errors in the array or not.
Is there a way arounf this that I'm not seeing?
|
By: Skrol29
Date: 2005-11-22
Time: 11:45
|
Re: Why is the text appearing
Hello Maz,
I don't have the same result when when I try your snippet.
[err_msg] or [err_msg;noerr] is always returning an empty string whether there are data or not. So the <div> is always delete for me.
I'm using TBS 2.05.3.
If I avoid the [onshow] tag, then data are displayed correctly.
|
By: Maz
Date: 2005-11-22
Time: 16:14
|
Re: Why is the text appearing
Hmm. I'll double-check my code and get back to you! :)
|
|
Posting in progress.
Please wait...
|