Creating a list of text by combining 2 list of text fields

Hi guys

heres a situation

i have 2 list of text fields in my table 1 is list of speakers and 2 is list of text

Speaker be like
speaker 1
speaker 2
speaker 3

and text be like
text 1
text 2
text 3

i want one custome state that is list of text and i want it be like
speaker 1 : test 1
speaker 2 : text 2
speaker 3 : text 3

i am using listshifter pro but i doubt if it can work in recurring process

any help would be appreciated thanx

You could use the Javascript to Bubble plugin to write some simple Javascript code to do this. It’s not very no-code but it’s simple enough code. The code might look something like:

const speakers = ["speaker 1", "speaker 2", "speaker 3"]; // insert your speaker-names search expression between the square brackets
const texts = ["text 1", "text 2", "text 3"]; // insert your text search expression between the square brackets
const newList = [];
for (let i = 0; i < speakers.length; i++) {
  newList.push(speakers[i] + ":" + texts[i]);
}
bubble_fn_concat(newList); // concat being the name you give as the first property of the JS to Bubble element

You could then use the JS to Bubble elements’s value list property as needed. best to add a small pause between running the js code and trying to use the output.

thank you brother for reply…

1 Like

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