Hi Hans

Well my 1st form was just an example to try to test my understanding and the functionality before moving on to bigger/better things.
Ideally I would want to have a number of inputs and for these to be part of the body of an e-mail.
So the user would then click submit and the information sent to the recipient - I don't mind if this data is saved on the
wiki somewhere too- that might be a good thing.!

I tried your version:
(:foxmessage test:)
(:fox test:)
(:foxtemplate "{$$comment}":)
(:input hidden foxfilter FoxNotify:)
(:input hidden foxnotify ListA:)
(:input text comment size=60 :)
(:input submit post Enter:)
(:foxend test:)

This was much better I now get ....

" Successful post to UK.Test "    Message on clicking submit.!!
The text typed into the text box is writtent to the page - below the form
An email is sent to me with the body as follows:
Recent GSC-Wiki posts: 
http:// ...... /pmwiki/pmwiki.php/UK.Test . . . March 12, 2008, at 10:55 PM by 

I'm not sure I understand what the
(:foxtemplate "{$$comment}":)
is doing.  I had tried

(:foxmessage test:)
(:fox test:)
(:foxtemplate [[#default]]:)
(:input hidden foxfilter FoxNotify:)
(:input hidden foxnotify ListA:)
(:input text comment size=60  :)
(:input submit post Enter:)
(:foxend test:)

but that doesn't work at all - no message or e-mail.


Thanks again for any tips

Graham


Hans wrote:
Wednesday, March 12, 2008, 8:55:31 PM, Graham Archer wrote:

  
(:foxmessage test:)
(:fox test:)
(:input hidden foxfilter FoxNotify:)
(:input hidden foxnotify ListA:)
(:input text comment size=60 :)
(:input submit post Enter:)
(:foxend test:)
    

Oh, no error message! Well it better produces an error, i better try
and fix it. You have no template specified, and no target.
No target is not so bad, as Fox will assume the current page as
target, but with no template Fox should abort.

I quite like to know what you want  to achieve with the form.
Just sending an email? No other action?

So for testing sake lets add a template. With it Fox will add to the
bottom of the page. Note that FoxNotify can only be used to send
email notifications on successful page saves. So it can't be used to
simply send an email. We need to save at least something somewhere,
even if it means only to change a PTV.

(:foxmessage test:)
(:fox test:)
(:foxtemplate "{$$comment}":)
(:input hidden foxfilter FoxNotify:)
(:input hidden foxnotify ListA:)
(:input text comment size=60 :)
(:input submit post Enter:)
(:foxend test:)

Now you may still not get any email send. Is there a
FoxTemplates.FoxNotifyTemplates page?

Let me know how it goes.
It may well be that FoxNotify needs an update too.


  ~Hans

  

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to