1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[4.2] - Including a function (with return value) from a hosted file gives an error

Discussão em 'PSDN - Forum' iniciado por IramK, Março 24, 2017.

  1. IramK

    IramK Guest

    Hello,

    I have a function that returns a value in a hosted file.

    Hosted File:

    function test(param1) {

    return param1 + "World";

    }

    Actual Trigger: (this needs a date return value)

    {!#HOSTED_FILE.5-1W4gciTTatl-eE4CTNaQ#text} // Hosted file

    var returnValue = test("Hello");

    var currentDate = new Date();
    return currentDate; // Throws an error when I click on "Validate Formula".

    currentDate; // This works fine

    Can someone explain why is this throwing an error in the first scenario?

    Cheers.

    Iram

    Continue reading...

Compartilhe esta Página