[pmwiki-users] [fox] only add new page when textarea is not empty

Hans design5 at softflow.co.uk
Mon Mar 8 05:27:09 CST 2010


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