Title: Problematic field at email
Last modified: March 1, 2019

---

# Problematic field at email

 *  Resolved [0rbita](https://wordpress.org/support/users/0rbita/)
 * (@0rbita)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/problematic-field-at-email/)
 * 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](https://wordpress.org/support/users/edgarrojas/)
 * (@edgarrojas)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/problematic-field-at-email/#post-11266534)
 * 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](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [7 years, 6 months ago](https://wordpress.org/support/topic/problematic-field-at-email/#post-11266928)
 * We don’t have tickets here. Never have though you can start a new topic.
 * [https://wordpress.org/support/plugin/smart-forms/#new-post](https://wordpress.org/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](https://wordpress.org/support/users/edgarrojas/)
 * (@edgarrojas)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/problematic-field-at-email/#post-11266940)
 * Ok, i will call them topic next time. is that ok?
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [7 years, 6 months ago](https://wordpress.org/support/topic/problematic-field-at-email/#post-11267754)
 * That would make me happy. 😎
 *  Thread Starter [0rbita](https://wordpress.org/support/users/0rbita/)
 * (@0rbita)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/problematic-field-at-email/#post-11280865)
 * 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](https://wordpress.org/support/users/edgarrojas/)
 * (@edgarrojas)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/problematic-field-at-email/#post-11286414)
 * 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.

 * ![](https://ps.w.org/smart-forms/assets/icon-256x256.jpg?rev=1226707)
 * [Smart Forms - when you need more than just a contact form](https://wordpress.org/plugins/smart-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-forms/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [EDGARROJAS](https://wordpress.org/support/users/edgarrojas/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/problematic-field-at-email/#post-11286414)
 * Status: resolved