[pmwiki-users] Error messages in PmForm don't stand out
Knut Alboldt
pmwiki at alboldt.de
Thu Feb 7 13:58:18 CST 2008
Hi Sandy !
I tested it using the following Form-Template (on Site.LocalTemplates):
[[#AForm]]
(:input pmform target={$$target} :)
(:input default source={*$FullName} :)
See next paragraph:
(:div style="color:red;":)
(:messages:)
(:divend:)
||(: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}
[[#AFormend]]
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
%red%(:messages:)%%
but that won't work ( (:messages:) won't parsed any more)
Knut
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