• Resolved shawnm1

    (@shawnm1)


    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

    (@edgarrojas)

    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

    (@shawnm1)

    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.