Title: Console
Last modified: October 13, 2020

---

# Console

 *  Resolved [shawnm1](https://wordpress.org/support/users/shawnm1/)
 * (@shawnm1)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/console-2/)
 * Hello!
 * I’m trying to implement some functionality, but am struggling to get the validations
   correct.
 * I’ve attempted to log the field out to the console in the formula builder, but
   it throws the error “unexpected console statement”.
 * How can I test my custom javascript for my form?

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

 *  Plugin Author [EDGARROJAS](https://wordpress.org/support/users/edgarrojas/)
 * (@edgarrojas)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/console-2/#post-13700255)
 * Hello!
 * Sorry for the delay, console.log should be supported. but if you use it you need
   to return a value. so for example if your formula is
    [Field1]+[Field2]
 * to use the log you need to change it to:
 * console.log([Field1]+[Field2]);
    return [Field1]+[Field2];
 * Regards!
 *  Thread Starter [shawnm1](https://wordpress.org/support/users/shawnm1/)
 * (@shawnm1)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/console-2/#post-13700322)
 * nope.
 * console.log(field);
    return field;
 * //error:unexpected console statement
 * I’d attach a screenshot, but I don’t see a way to do that.

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

The topic ‘Console’ 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/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 2 replies
 * 2 participants
 * Last reply from: [shawnm1](https://wordpress.org/support/users/shawnm1/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/console-2/#post-13700322)
 * Status: resolved