Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter abragamss

    (@abragamss)

    Hi there,

    I have the equation like this.

    (function(){
    var result = CONCATENATE(‘Resistor Value = ‘, fieldname39, ‘Ohm’, fieldname35, IF(fieldname25 == ‘6 band’, fieldname37, ”));

    jQuery(‘.color-coding-output’).html(result);
    return result;
    })()`

    In this equation, ‘fieldname39’ is the output value, which ranges from ‘1 to 999000000000’.
    If the output value is 1000, it should be displayed as 1K
    If the output value is 10000, it should be displayed as 10K
    If the output value is 100000, it should be displayed as 100K
    If the output value is 1000000, it should be displayed as 1M
    If the output value is 10000000, it should be displayed as 10M
    If the output value is 100000000, it should be displayed as 100M
    If the output value is 1000000000, it should be displayed as 1G
    If the output value is 10000000000, it should be displayed as 10G.

    Is that possible to do? How to implement this?

    Thread Starter abragamss

    (@abragamss)

    Thank you for the solution. Everything has worked.

    Thread Starter abragamss

    (@abragamss)

    Thank you so much, it is working.

    Now, in the same form, I have 2 inputs, 3 outputs and two choices.
    Let the output fields are fieldname3, fieldname4 and fieldname5.
    and the choices are choice1 = degrees and choice2 = radians.

    If I select choice1, the HTML output should be “The output is fieldname3(+-)jfieldname4”
    If I select choice2, the HTML output should be “The output is fieldname3(+-)jfieldname5”

    How to execute this? Could you help me please.

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