Form option field with collection items

Hello, I have a country codes collection (AL, AM, AS…) which I would like to create a select field for. Is that possible?

For a list of countries (Veryyyyyyyyyy long) - its easier to put embed code inside the form.

Step 1 - create a form

Step 2 - copy-paste select code inside webflow embed-code element

image
image

Search on google for update list (by country of country code).

Example: Option select list of countries and country codes - :

(You find the “value” under form submission data (setting → forms)).

Step 3

Add “name” (Name = table col heading under form submission data).

placeholder

1 Like

Thank you @Siton_Systems for the descriptive answer! this is exactly what I did, but I can’t put more then 10000 characters inside the embed component

@Naama - If you remove all the white-space and carriage returns that would be 9555 characters.

https://gist.githubusercontent.com/netdoctor/2c3c1d21bd559fa8af6d511b39335ec0/raw/8b0f4ffa595c07fa95c9bea917ab6a8d3e0e005f/countries-select

1 Like

Thanks so much @webdev!

Hello :wave: I had the same problem and wanted to share my solution with future readers.

I used ChatGPT to whip up a little tool that will generate a native Webflow select input from a comma-separated list. I published the tool and it’s free for anyone to use.

Here’s the link to the tool.

I prefer this solution over custom code, but both are equally valid!