Skip to main content
Nintex Community Menu Bar
Question

Call a function in a snippet from another snippet

  • Jul 10, 2024 12:25 AM UTC
  • 6 replies
  • 76 views
  • Translate All

Forum|alt.badge.img+10

If I have a function in a snippet that is called on page load, how do I then refer back to that function from an in-line snippet triggered, for example, by the action framework?

Forgive me if I’m being horribly daft.

Cheers!

Louis

6 replies

Forum|alt.badge.img+10
  • Author
  • Nintex Partner
  • Jul 10, 2024 12:49 AM UTC

To provide an example: I’m populating a series of markers for each record in a model on a Google Map. I’m placing those markers in an array. This all occurs on page load. I then want to clear that array via a snippet on a button.

Translate

Forum|alt.badge.img+9

Forum|alt.badge.img+10
  • Author
  • Nintex Partner
  • Jul 10, 2024 12:49 AM UTC

Thanks Moshe! I’ll give it a go and let you know how I get on.

Translate

Forum|alt.badge.img+11

I’ve used the pattern from Moshe’s original post many times.  

Translate

Forum|alt.badge.img+10
  • Author
  • Nintex Partner
  • Jul 10, 2024 12:49 AM UTC

Thanks again Moshe, registering snippets in one js resource and calling them from the action frame-work made this a whole lot easier to put together. Cheers!

Translate

Forum|alt.badge.img+17
  • Nintex Employee
  • Jul 10, 2024 12:49 AM UTC

That’s a bunch of pins on that map… 

Translate