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

    (@codepeople)

    Hi,

    I guess you are trying to get the next equation:

    (function(){
    if( fieldname39==”UF84″&& fieldname38==”JU6H”&& fieldname40=”Clarke”&& fieldname41=”3000/216″)
    return (148)
    })()

    Pay attention to the equality operators, and the spaces into the conditional statements:

    (function(){
    if( fieldname39=="UF84" && fieldname38=="JU6H" && fieldname40=="Clarke" && fieldname41==3000/216 )
    {
    return 148;
    }
    })()

    Best regards.

    Thread Starter dustundag

    (@dustundag)

    Hi
    It is stil not working.
    I have 4 fields based on dropdown selection
    If 4 of the selection match, it will show up the heat Loss .
    Regards

    Plugin Author codepeople

    (@codepeople)

    Hi,

    Could you send me the link to the webpage where was inserted the form to check the values of fields, please?

    Best regards.

    Thread Starter dustundag

    (@dustundag)

    Plugin Author codepeople

    (@codepeople)

    Hi,

    I’ve detected the issue in your equations. Please, modifies the equations of fields as follows:

    The equation for the “Diesel Engine kW” field:

    (function(){
    if( fieldname39=='UF84' && fieldname38=='JU6H' && fieldname40=='Clarke' && fieldname41=='3000/216')
    return 205;
    })()

    The equation for the “Heat loss to cooling Heat – kW” field:

    (function(){
    if( fieldname39=="UF84" && fieldname38=="JU6H" && fieldname40=="Clarke" && fieldname41=='3000/216' )
    {
    return 148;
    }
    })()

    The equation for the “Heat loss due to Radiated Heat – kW” field:

    (function(){
    if( fieldname39=="UF84" && fieldname38=="JU6H" && fieldname40=="Clarke" && fieldname41=='3000/216' )
    {
    return 65.6;
    }
    })()

    and that’s all.

    Thread Starter dustundag

    (@dustundag)

    Thanks.
    But there is no result created? 65.6 or 148

    Plugin Author codepeople

    (@codepeople)

    Hi,

    Please, pay attention to my previous ticket, I’ve modified both equations, specifically the piece of code:

    fieldname41=='3000/216'

    I’ve closed 3000/216 into single-quote symbols.

    Best regards.

    Thread Starter dustundag

    (@dustundag)

    ‘3000/216’ )
    May be “3000/2016” to be User instead of ‘3000/216’ as not calculation!

    Plugin Author codepeople

    (@codepeople)

    Hi,

    You’ve not corrected the equations in the form, I did it for you, please, visit your webpage again:

    https://www.teknoyangin.com/pump-room-ventilation/

    Best regards.

    Thread Starter dustundag

    (@dustundag)

    Great. Thanks!!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Logic for Multiple Text Fields’ is closed to new replies.