Hello, I am working on a calculation with Form Builder and am facing a problem, it maybe kind of hard to explain but i will try my best to explain it as clear as possible.
In form1 people enter a value in an input field
after submission form2 uses the input value and will show the Computed Field from form1.
however the input field should have more than one value for calculation.
if the value is between 0-6 7-15 16-40 or 40+ there should be an extra value added.
I have accomplished this in form2 with:
Code: Select all
{if $smarty.session.fbparams.aantalmeters <= "6"}
{assign var="metergroep" value="1.3"}
{/if}
{if $smarty.session.fbparams.aantalmeters >= "7" and $smarty.session.fbparams.aantalmeters <= "15" }
{assign var="metergroep" value="1"}
{/if}
{if $smarty.session.fbparams.aantalmeters >= "16" and $smarty.session.fbparams.aantalmeters <= "40" }
{assign var="metergroep" value="0.95"}
{/if}
{if $smarty.session.fbparams.aantalmeters > "40" }
{assign var="metergroep" value="0.9"}
{/if}
I have tried moving this code to form1 (with some adjustments) and tried to use $metergroep within the Computed Field, but I understand this is not possible since $metergroep holds no value yet in form1.
There would be an easy solution to add an extra field in form1 which asks within what region their input falls and then use that value but I think thats kinda lame and hope someone will be able and willing to help me over here.
EDIT: PS you can view the calculation form at http://www.dezinkspecialist.nl/bereken- ... osten.html