Sign In   Register
Pinned Items
Recent Activities
  • I Clouser started a new discussion, Custom Components Javascript
    Custom Components Javascript

    I have the below javascript file example.js 

    (function () { var Example = { notValid: function (data, value, item) { return false; }, isValid: function (data, value, item) { return true; } }; if (typeof window !== 'undefined') {...

    I have the below javascript file example.js 

    (function () { var Example = { notValid: function (data, value, item) { return false; }, isValid: function (data, value, item) { return true; } }; if (typeof window !== 'undefined') { window.DepositProducts = Example; window.maestro.shouldMountApiToWindow = true } else { module.exports = Example; } })();

    and I import it into my custom component like below:

    define(["app","./example.js"], function (app) {
    }
     
    and When I try to call Example.isValid() in a validation rule I get Example is not defined. 
    So my question is how do you properly call the custom javascript via Form rules? 
    More
    1. View Post
    0
    0
    0
    0
    0
    0
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  • I Clouser unlocked the badge Newbie
    Newbie
    Being part of a community. To unlock this badge, you need to register on this site.
    0
    0
    0
    0
    0
    0
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  • I Clouser joined the group, Journey Platform
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
There are no activities here yet
Unable to load tooltip content.

Not a member?

Register to ask a question and access to more content.

Join now

Looking for something else?

You can request access to:

  • Courses
  • Full Release Notes
  • Product Downloads
  • SDK

Request access