Adding input values as a list to a plugin (or custom state)

I have a plugin that has two fields. they’re dynamic values, data type number, a list.

I want to send a list of numbers to the plugin on button press. However, Ive not figured out how to do that from my workflow:

So, I’m giving it a try by creating two custom states that are lists:

Then I’m using set state to pass the input data to the custom states:

However, I have many inputs for each field. Is there a way to do this that’s not :plus item for each input value? Or a way to do it from an action that calls the plugin without using the custom states?

1 Like

Your plugin should take **one single text input** (comma- or line-separated values), and then **parse it internally** using JavaScript. The plugin automatically **splits that text into a real Bubble list** and publishes it as a state. This removes the need for users to manually add each input value with workflows.

Thanks for the response, but I’m trying to translate that. So when I call this plugin, how do I get Input1’s_Value “,” Input2’s_Value , etc into the plugin?

Sorry if this is supernoob. It’s my first time working with a plugin and fields.

I think I get it…so the fields in the plugin don’t have to be list. I can then sent a comma separated text line with the inputs “input1, input2, etc” and it will take care of it from there

1 Like

@adamhholmes says it succinctly :star_struck:

Yeah, that worked. Thank you both.