Convert a list in texts to Things

Hey @sujaya.jason,

You haven’t said where the list will be provided, so I’ve assumed an input element. Here’s a sample of creating a new thing for each phrase that is separated by a comma:

Create an API endpoint that accepts the value you will be adding:

In that endpoint, add an action to create the new thing (in my example a thing called random with a field called text using the value provided):

On the user page, you schedule that endpoint on a list (my trigger is a button press):

The List to run on, is made by parsing the input element value using regex, and then trimming away any white space on the ends.

Here’s the regex pattern:

([^,]+)



Looking to improve your Bubble™ skills?

Let me turn
:thinking: :tired_face: :confounded:

into
:grinning: :sunglasses: :woman_student:

Coaching and Development at https://uniqueideas.com or schedule a free intro session :gift:

Ken Truesdale
LinkedIn

3 Likes