Get Column Names from Uploaded CSV File

Hi all. I want to get column names from uploaded csv file and put that names into my text Input. How I do that? Do I need to use parsedValue or something else?

Let say I am uploaded this file to Retool

Then I want to get column names (EMAIL, NOME, COGNOME, etc) and put that in my text input.

How to do it?

Hey there!

First important thing is to enable file parsing on the file Input element.

Once file is added you can reference the values using JavaScript. I've provided an example of how you would extract comma separated values for the header.

Let me know if this helps!