• Resolved kazack84

    (@kazack84)


    Hi!

    Great plugin, how can I achieve this:

    – fields called (CUANTAS SEMANAS) + field Called (SELECCIONE SU HABITACIÓN) are sum and multiple? for example if you select:

    CUANTAS SEMANAS = 2 SEMANAS (WEEKS) 280€
    +
    SELECCIONE SU HABITACIÓN = 150€/SEMANA (PER WEEK)
    =
    THE TOTAL SUM MUST BE IN THIS CASE 580€

    thanks!

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author codepeople

    (@codepeople)

    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.

    Thread Starter kazack84

    (@kazack84)

    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;
    })()

    Thread Starter kazack84

    (@kazack84)

    done it, thanks

    Thread Starter kazack84

    (@kazack84)

    another question, Im clicking the SUBMIT button but no form is arriving to the admin email

    Thread Starter kazack84

    (@kazack84)

    i have a button with this code:

    jQuery(this).closest(‘form’).submit();

    Plugin Author codepeople

    (@codepeople)

    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.

    Thread Starter kazack84

    (@kazack84)

    But I thoguht that with the FREE version at least the form will work

    Plugin Author codepeople

    (@codepeople)

    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.

    Thread Starter kazack84

    (@kazack84)

    a ok, so with the professional version will the form send me an email with the form filled?

    Plugin Author codepeople

    (@codepeople)

    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.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘sum & multiple 2 fields’ is closed to new replies.