Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there,

    Great plugin! I too am having a problem with a formula and have read all the issues I can find to solve it but it’s not working.

    I need a formula for a form with 3 fields. I need the results of a calculation to depend on two of those fields.

    So if fieldname81 is below a certain number AND fieldname83 (a dropdown) is 1, give X calculation.
    Else if fieldname81 is between two numbers AND fieldname83 (a dropdown) 1, give Y calculation.
    Else if fieldname81 is above a certain number AND fieldname83 (a dropdown) 1, give Z calculation.

    The whole thing needs to repeat again but with fieldname83 being 2 and being 3. It’s getting complicated… ??

    Here’s what I wrote:

    (funtion() {
    if (fieldname81 < 448) {return
    ((fieldname84*fieldname81*0.1818)/1000);}
    else if (fieldname81 >= 448 && fieldname81 < 1127 && fieldname82 == 1) {return ((fieldname84*fieldname81*0.09887)/1000);}
    else if (fieldname81 >= 448 && fieldname81 < 1127 && fieldname82 == 2) {return
        ((fieldname84*fieldname81*0.1483 )/1000);}
    else if (fieldname81 >= 448 && fieldname81 < 1127 && fieldname82 == 3) {return
        ((fieldname84*fieldname81*0.2038 )/1000);}
    else if (fieldname81 >= 1127 && fieldname82 == 1) {return
        ((fieldname84*fieldname81*0.08667)/1000);}
    else if (fieldname81 >= 1127 && fieldname82 == 2) {return
        ((fieldname84*fieldname81*0.2513 )/1000);}
    else if (fieldname81 >= 1127 && fieldname82 == 3) {return
        ((fieldname84*fieldname81*0.3467 )/1000);
    }
    })();

    Thanks in advance for your help!

    I’m having the same problem. If I use any markup in the content, it displays nothing. Some help with this issue would be great!

    Hooray. Thank you for speaking my language, Denis. It’s working just fine now.

    Can anyone help me out with this process? I’d like to add that functionality to Jazzy forms on our site, so that I can have a tooltip show up in the HTML content in the form (ie via a tooltip plugin), but I am not really a programmer. ??

    So I’m wondering: Where would I add the do_shortcode??? What file in the plugin should I edit??

    I really don’t want to break things, but I can’t seem to find enough information that allows me to do this confidently.

    Related links:
    https://www.sitepoint.com/wordpress-nested-shortcodes/ (sort of gives me an idea, but not quite. remember, I have no idea how to do this…)
    https://codex.www.ads-software.com/Function_Reference/do_shortcode

    Thanks so much!

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