• Resolved 0rbita

    (@0rbita)


    Hello,

    I do have some calculation field that does calculated just fine.
    However, for some specifc result, the field goes like this to the email “undefined”
    Even though the field display the right result on the form, it does not do it on the email.
    What may be happening?

    I do have another question, please:
    You helped me determine some condition to a calculated field.
    If the result is zero, then it should display a message, instead of the calculation.
    But I have one option that also display the result = zero, but I would like it to show a different message.
    But this particularly option came from a different field (a multiple choice one)
    Is there some way to make a condition for this also?

    Thank you very much

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author EDGARROJAS

    (@edgarrojas)

    Hello regarding your first question:

    So that ‘undefined’ is only shown in the email but in the form it works fine? and are you using a formula for that field?

    Regarding your second question, to keep things organized could you create a separate ticket please?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    We don’t have tickets here. Never have though you can start a new topic.

    https://ww.wp.xz.cn/support/plugin/smart-forms/#new-post

    Don’t call them “tickets” it gives users the idea that they’re customers and that is just not true.

    Plugin Author EDGARROJAS

    (@edgarrojas)

    Ok, i will call them topic next time. is that ok?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    That would make me happy. 😎

    Thread Starter 0rbita

    (@0rbita)

    Hello,

    Ok, I’ve just created a new topic for the second question.

    About the calculation field, actually, this is what’s happening:

    – Field A is like this:

    var result=RNFRound(field x + field y + field w,2);
    if(result==0)
    return ‘verificar valores abaixo’;

    I now realized that the calculation is not being done at all.
    So anytime I select one of the fields that should be summed up in field A, it shows the “undefined” message

    So how can I fix it?

    Thank you very much

    Plugin Author EDGARROJAS

    (@edgarrojas)

    you need to do something like this:

    
    var result=RNFRound(field x + field y + field w,2);
    if(result==0)
    return ‘verificar valores abaixo’;
    return result;
    

    Otherwise the formula would only display the message if the result if zero but if it is not zero it wouldn’t do anything else (that is why it display undefined).

    Regards!

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

The topic ‘Problematic field at email’ is closed to new replies.