• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Form Builder calculation help wanted
PostPosted: Sat Mar 31, 2012 10:09 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Thu May 08, 2008 6:35 pm
Posts: 83
I have posted the post below in the normal forums but had no reply, I really need a fast solution for this problem and am willing to pay €50,00 for someone who can provide me the solution for this problem.


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:
{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}


now {$metergroep} will show the right value within form2 but I am not able to use {$metergroep} within the Computed Field at form1.

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner