Hello @kazack84
There are different alternatives. I’ll try to describe the process with an hypothetical example:
– Assuming you have a dropdown field (the fieldname1) with the number of weeks (the choices’ values would be the number of weeks only): 1,2,3 ….
– Assuming you have a second dropdown field (the fieldname2) with the rooms type (the choices’ texts are the texts you want, but the choices’ values would be their prices, but the numbers only, without currency codes): 150, 180, 210, ….
And then, using some conditional statements in the equation associated to the calculated field, it would be similar to:
(function(){
var price = 0;
switch(fieldname1)
{
case 1: price = 140; break;
case 2: price = 280; break;
case 3: price = 420; break;
case 4: price = 560; break;
}
return price+fieldname1*fieldname2;
})()
Best regards.
the fileda are fieldname13 and fieldname25, i dont it but not showing anything
(function(){
var price = 0;
switch(fieldname13)
{
case 1: price = 140; break;
case 2: price = 280; break;
case 3: price = 420; break;
case 4: price = 560; break;
}
return price+fieldname13*fieldname25;
})()
another question, Im clicking the SUBMIT button but no form is arriving to the admin email
i have a button with this code:
jQuery(this).closest(‘form’).submit();
Hello @kazack84
You are using the free version of the plugin, that not includes the server side modules to process the submitted information: – To store the information collected by the form in the database, – Send the notification emails, – Integrate the form with a payment gateway, etc.
You can find a comparison of the different distribution of the plugin, visiting the following link:
https://cff.dwbooster.com/download#comparison
Best regards.
But I thoguht that with the FREE version at least the form will work
Hello @kazack84
The form works, in fact, you are using it. But, if you install the free version of the plugin, the information collected by the form should be managed by yourself with your own code.
Best regards.
a ok, so with the professional version will the form send me an email with the form filled?
Hello @kazack84
Yes, the notification emails feature is included with the Professional version of the plugin. More information, in the following post of the plugin’s blog:
https://cff.dwbooster.com/blog/2018/05/28/sending-notification-emails-with-the-calculated-fields-form-plugin/
Best regards.