Javascript Toolbox Help

Hey,
I need some help. I’m trying to create a function in the javascript toolbox to extract the position of a text element in a text list.
/ That is, if I have these inputs (see image):

  1. a text array = [red, blue, green]
    (actually it’s a “do a search for…”)
  2. a text element = blue
    (actually a “dropdown value input”).
    / The result of that function should return a 2.

I tried with ChatGPT but I coulnd’t solve it. It returned a 0. Thanks in advanced!

PS: Image 2 is the javascript toolbox setup.


@eli has a plugin that should work for this. It’s called 1T Index Finder

2 Likes

Thanks!! It worked perfectly.

And thanks @eli !

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.