Very nice, Hans. This will be a great addition to Fox. I have
encountered one problem with redirection, though.
On my ask-a-question page I have:
{[foxedit label=Ask a question form=Edit.FAQAddForm]}
On my form page I have:
(:fox faform template=Edit.FAQTemplate target={*$Group}.FAQAnswers}
Hans,
Here's another question about Fox input validation.
One of my forms has this Cancel button:
(:input submit cancel Clear form:)
By canceling, it clears the form and leaves the user on the same page,
ready to start over. But with input validity checking, now pressing
Clear form
Hans.
BTW, I'm using the Cancel button with a Clear form label to clear
the form for one simple reason: I don't know any other way to make a
Clear form button that matches Submit. If I used a link, I could
simply reload the page without encountering invalid input messages.
Do you know of
Friday, March 7, 2008, 4:15:08 PM, Randy wrote:
BTW, I'm using the Cancel button with a Clear form label to clear
the form for one simple reason: I don't know any other way to make a
Clear form button that matches Submit. If I used a link, I could
simply reload the page without
Inspired by the (:template requires ..:) markup from PmForm
I updated fox.ph and added input validation checking to Fox via a new
(:foxcheck name ...:) markup.
See info at http://www.pmwiki.org/wiki/Cookbook/Fox#foxcheck
foxcheck will use parameters match=string and if=condition and
PS: adding more to the last update:
I revised the handling of input values so Fox will redisplay
input values if the posting was aborted, but will clear all fields on
successful postings. a new keepinput= parameter can be set to
selectively keep input values for named fields with
A quick test now seems to work. Cancelredirect worked too.
Hans, I think you've just made Fox a better form processor. I had
forgotten about the ability to use Cancel redirection to Clear form.
I'm using it already! Thank you for adding it.
Randy
On Mar 2, 2008, at 5:58 AM, Hans wrote:
... There was a bad variable in the Fox form. I uploaded an
updated fox.php. Tell me if it works now.
Yes, it does !
Please also check if delete
buttons work.
It delete well, but with this syntax :
(:if auth edit:){[foxdelrange]}(:if:)
as the Fox comment Box page says, it do not works with
Friday, March 30, 2007, 9:01:32 PM, malexism wrote:
It delete well, but with this syntax :
(:if auth edit:){[foxdelrange]}(:if:)
as the Fox comment Box page says, it do not works with :
(:if author {author}{[foxdelrange]}(:if:)
as the Fox Page says.
Have you added the custom author
Hans a écrit :
(:fox form1 #top redirect=1 target={topic} foxgroup={$Group}:)
...
It works. Just a little problem when submit, in the HomePage form and in
the Comment form, the post sent the user to the root of the web site...
Thank you Hans.
marc
--
Adiu Sud Gironde : http://www.adiu.fr/
Wednesday, March 28, 2007, 4:02:36 PM, malexism wrote:
It works. Just a little problem when submit, in the HomePage form and in
the Comment form, the post sent the user to the root of the web site...
can you explain this a bit? Is there a url to look at?
Hans
Hans a écrit :
can you explain this a bit?
Excuse-me : every post works but send to the root (adiu.fr in that
case). If you enter a topic name, the page is created, with the good
stripped name and the good complete title, but you jump to
http://www.adiu.fr/. The same when you post a comment
Wednesday, March 28, 2007, 4:23:09 PM, malexism wrote:
Excuse-me : every post works but send to the root (adiu.fr in that
case). If you enter a topic name, the page is created, with the good
stripped name and the good complete title, but you jump to
http://www.adiu.fr/. The same when you
13 matches
Mail list logo