Skip to main content
Nintex Community Menu Bar
Question

Call a function in a snippet from another snippet

  • July 10, 2024
  • 6 replies
  • 37 views

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

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.


Forum|alt.badge.img+9

Forum|alt.badge.img+10

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


Forum|alt.badge.img+11

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


Forum|alt.badge.img+10

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!


Forum|alt.badge.img+17
  • Nintex Employee
  • July 10, 2024

That’s a bunch of pins on that map…