I would like to display a value on page which is simply two TVs added together.
I have a TV called initialpayment and another called finalpayment.Â I want to add them together and display on a page.
Iâ€™ve never used PHX before.Â Iâ€™m assuming this is a job for PHX?Â I suspect Iâ€™m stuck on the syntax.Â Iâ€™ve tried about a hundred variations canâ€™t seem to get it right.Â I get either a parse error or no value is displayed.Â Can someone show me how its done?
Hereâ€™s the latest Iâ€™ve tried.
Thanks for responding so quickly.
Hereâ€™s what I get with your example.
Parse error: syntax error, unexpected T_DNUMBER, expecting T_VARIABLE or â€™$â€™ in /home/xxxxxxx/public_html/assets/plugins/phx/phx.parser.class.inc.php(266) : eval()â€™d code on line 1
i checked it out. created 2 Tvs . added them. it worked as expect.
I havenâ€™t got a clue why it is not working.
Do you got any orphan tags or backticks somewhere in your content?
You were right on. Turns out the TVs contain $50.00 and $250.00 rather than pure numeric values.
Once I removed those $s, worked like a charm!
Any idea how u would add fields in Migx together. Say I have a field "number". I would like the user to add as many rows with values they want and at the end it would be totalled.
In Evo 1.0.3, and inside Ditto is there any way to adapt the example to use placeholders instead of TVs?
Replacing the * by + does not work.
I tried to disable PHx as I read there is already built-in PHx in Ditto.