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?

Example:
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.
image

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.
image
image

Let me know if this helps!