How to save a list of things?

I have a relational database with “posts” which has a one to many relationship with a links data model. So one post can contain multiple links.

I’m trying to add links which are stored in a page variable list “new_post_links”. See my current setup in the screenshot below:

I can’t find a way to add the individual link in the required “link” field. I’m assuming I need to use list mutation because the links are a list?

Or maybe I’ve got the entire data model wrong? How do i set this up correctly? I just want to save a list of links to a post.

Firstly, your approach is correct. Secondly, for the ‘insert links’ action, you need to click on the three dots in the top right corner of the links and then select ‘switch’. This will change it to the list mutation format. I also noticed that you have likely converted the page variable ‘new_post_links’ into a list of text. In this case, there is no need to make any selection in the switch, as you are already dealing with the text itself.


1 Like

The interaction experience of this part is indeed not very good, as it is a design from a long time ago. We will change it to a more reasonable way in the future.

2 Likes

That worked, thanks! Agree the UX isn’t intuitive for this.

Off topic but I’d like the ability which allows a page variable to have a list of images. I see that if the page variable type is selected as an image, you can’t enable a list.

Maybe you can use Image Picker? What is your scenario?

The multi image picker works perfectly for my use case, thank you.

Trying to recreate this:

1 Like

Cool! Feel free to ask questions