[pmwiki-users] Calculated PTV in forms

kirpi at kirpi.it kirpi at kirpi.it
Sun Sep 21 01:13:34 CDT 2014

> Enter number x: (:input text name=$:X :)\\
> Enter number y: (:input text name=$:Y :)
> (:input hidden name=$:Sum value="{$$(add {$$ptv_X} {$$ptv_Y})}":)

Yes, Hans, it works if I write {$$ptv_ in front of my variables.
This is what I was missing: one more variation :-)
Yet it was somehow documented in the Notes section of one of your pages[1].
I read and re-read all your and pmwiki instructions many times in
order not to disturb anybody, but managed to skip this note, sorry.
You are very kind.

PTV are so useful, yet all those variations, which I miss to
understand, make them hard to use at times.
As an instance, I first understood that semicolon is used in
"invented" variables like $:Xyz as opposed to "reserved" Pmwiki
variables like $Group[2]
But then I notice those semicolon appearing and disappearing under a
different law, just as in your cited example above.
Clearly there are deep technical reasons for this, although I do not
understand them.
I tried and make a table with all the variations, a few basic notes
and a simple example, as a reference to be published somewhere, but at
the end I got lost, overwhelmed in my ignorance and in too many
convolutions :-)

Your Fox works wonderfully, thanks again!


[1] http://softflow.co.uk/design/Wiki/FoxEdit
[2] http://www.pmwiki.org/wiki/PmWiki/PageTextVariables

More information about the pmwiki-users mailing list