How to combrine 2 data in one field

Sorry, I’m a starter to use glide. It about to complete but I have some problem.
How can I show the data in same line like comparation page(Model: CM3 CP1)
It’s always show model: CM3, model: CP1

Can you show us how the data is stored in the table you are using? Also, is there a specific reason to why you are using the Rich Text component to display this?

I would avoid the Rich Text component.

To concatenate information onto one line, you can use a template column in the data editor or inline templates in any field in the layout editor.

1 Like

To do what you want, you would need all data in one row so you can built your html table using data from that single row.

If it were me though, I think for something like this I would create a JSON Object column to build JSON of all data for each row.

Then I would create a Lookup column that points at that JSON object column to get an array of all items.

Then create another JSON Object column that looks at that Lookup column and creates one big JSON object with everything together.

Then copy and paste that JSON into ChatGPT and ask it to build javascript that will return an HTML table in a comparison style.

Then you can use the HTML from the javascript column as the source of your rich text component.

2 Likes

Oh thank you. I’ll try

1 Like

Did it work?