I made changes using the correct syntax, bust still get 0 value printed. Is it because it is inside a repeater that is doesn't work or do i need to change the syntax slightly?
This is how i have the repeater setup - its used for creating tables inside a tcpdf:
Data provider : {var:read_properties} - this is workign fine as all data below appears except for the php which results in 0
I made changes using the correct syntax, bust still get 0 value printed. Is it because it is inside a repeater that is doesn't work or do i need to change the syntax slightly?
This is how i have the repeater setup - its used for creating tables inside a tcpdf:
Data provider : {var:read_properties} - this is workign fine as all data below appears except for the php which results in 0
I suppose that cost is not a request data value but some value in the data provider of the repeater. To access the values of a var you use a different syntax:
$this->get('repeater_sirva.row.Prop.cost')
I think you should read the chronoforms v6 manual that you can find in the Download section.
I've used this code in the end, as i realised some users liked to add a comma in the value, but i was expecting an integer so the number formatting needed changing first! I did try what you wrote above before but couldnt work out why i was just getting 0.23 or 0. So here's what i came up with:
I want to work out weekly rate when given monthly - simple multiplication like this inside the repeater area:
I'm having problems working out how to get the field value in php, so replacing the content within the {} I just get 0 each time.
Ive tried
but doesnt find it, just gives 0 each time.
Any ideas?
Thanks
Ben
Your syntax is wrong:
Variable shortcodes
Request data paragraphs, yellow/orange box.
Bye
maxx
I made changes using the correct syntax, bust still get 0 value printed. Is it because it is inside a repeater that is doesn't work or do i need to change the syntax slightly?
This is how i have the repeater setup - its used for creating tables inside a tcpdf:
Data provider : {var:read_properties} - this is workign fine as all data below appears except for the php which results in 0
Content:
Header:
Footer:
I suppose that cost is not a request data value but some value in the data provider of the repeater.
To access the values of a var you use a different syntax:
I think you should read the chronoforms v6 manual that you can find in the Download section.
bye
maxx
I've used this code in the end, as i realised some users liked to add a comma in the value, but i was expecting an integer so the number formatting needed changing first! I did try what you wrote above before but couldnt work out why i was just getting 0.23 or 0. So here's what i came up with: