[pmwiki-users] [Fwd: Re: Error messages in PmForm don't stand out]

Knut Alboldt pmwiki at alboldt.de
Thu Feb 7 14:00:22 CST 2008

Sorry, I tested with my own form template, for mailform it possibly 
would be like this:

(:template default successpage='' :)
(:input pmform target={$$target} successpage="{$$successpage}" :)
(:input default request=1:)
(:div style="color:red;":)
||$[Your address]: ||(:input text from size=30:) ||
||$[Subject]:      ||(:input text subject size=30:) ||
(:input textarea text rows=15 cols=60:)\\
(:input submit name=post value='$[Send]':)
(:input end:)

(not tested)


-------- Original-Nachricht --------
Betreff: Re: [pmwiki-users] Error messages in PmForm don't stand out
Datum: Thu, 07 Feb 2008 20:58:18 +0100
Von: Knut Alboldt <pmwiki at alboldt.de>
An: Sandy <sandy at onebit.ca>
CC: pmwiki-users maillist <Pmwiki-users at pmichaud.com>
Referenzen: <fofgc0$8ds$1 at ger.gmane.org>

Hi Sandy !

I tested it using the following Form-Template (on Site.LocalTemplates):

(:input pmform target={$$target} :)
(:input default source={*$FullName} :)

See next paragraph:

(:div style="color:red;":)

||(:input submit value='Änderungen speichern':) || ||
||Textfield: ||(:input text $:textfield :) ||
||Selectfield: ||(:input select $:selectfield value=nein:)(:input select
$:selectfield value=ja:) ||
||Textareafield: || (:input textarea $:textareafield rows=6 columns=50:) ||
(:input end:)
* target={$$target}
* FullName={*$FullName}
* *FullName={$FullName}

and it worked.

So it has to be done in the input form definition rather than in the
post-processing template (?).
But this also will type all kind of messages in red (f there are other
displayed than errormessages)

I also tried


but that won't work ( (:messages:)  won't parsed any more)


Sandy schrieb:
> I'm using PmForm with #mailform and #mailpost.
> If the user doesn't use every field, he gets an error message, as 
> defined by:
> [[#mailpost]]
> (:template require from errmsg="$[Missing 'from' address]" :)
> (:template require subject errmsg="$[Missing message subject]" :)
> (:template require text errmsg="$[Message text required]" :)
> (:template require if="captcha" errmsg="$[Captcha required]" :)''''
> {$$text}
> ==========
> Sent via PmForm at {$$PageUrl}
> [[#mailpostend]]
> ++++++++++++++++++++++++++++++++++
> I would like the error message to stand out. Currently, it's in the same 
> size and colour as the rest of the page, and easy to miss, leading to a 
> confused, irate and frustrated user who, being a typical user, has no 
> idea whether what he did worked, or what he did wrong.
> I tried %red% and '''...''' , with no success.  (I also removed the 
> $[...]; I don't need multilingual capabilities.)
> Any other ideas?
> Thanks in advance,
> Sandy
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users

More information about the pmwiki-users mailing list