[pmwiki-users] [fox] only add new page when textarea is not empty
Martin Kerz
mkerz at me.com
Mon Mar 8 12:47:42 CST 2010
Dear Hans,
as always, thanks a lot. I already know and use foxcheck. But I don't know if I can use the checking of a field to get fox to act conditional equivalent. What I mean is that I want to (fox)check if a textarea is empty (which I can do right now). If something is entered in the textarea I want to perform a foxadd. Perhaps the answer is already there, but I'm a bit puzzled right now.
Martin
Am 08.03.2010 um 12:27 schrieb Hans:
> Monday, March 8, 2010, 10:53:50 AM, Martin Kerz wrote:
>
>> is there a possibility to specify in a fox form that a new page
>> (with the content from a given textarea in the form) is only created when the textarea is not empty?
>
> you can use Fox's in put validation
> http://www.pmwiki.org/wiki/Cookbook/fox#foxcheck
>
> If 'text' is th ename of your textarea input control,
> add to the Fox form something like (:foxcheck text :)
> or some more eleaborate error check and reporting.
> Make sure you got (:foxmessages:) as well, for display
> of error messages.
>
> ~Hans
>
More information about the pmwiki-users
mailing list