How to bulk add values for Enum field

I am creating a form in my app and I am collecting information like country. I would like my user to have a dropdown with the list of countries. Is there a way to bulk add them? It would take me ages to add 196 countries one by one. Thank you!

Solved Solved
0 10 494
1 ACCEPTED SOLUTION

Steve
Platinum 4
Platinum 4

Create a separate table prepopulated with the countries. Use Valid If or Suggested values to generate the dropdown from the values in that table.

View solution in original post

10 REPLIES 10

Steve
Platinum 4
Platinum 4

Create a separate table prepopulated with the countries. Use Valid If or Suggested values to generate the dropdown from the values in that table.

Thanks, Steve! This worked well for the Enum type. 

I also looked into a work-around for EnumList and found the following:

  • Type: EnumList
  • Base type: Ref
  • Reference table name: {table with validation values}
  • Item separator: ","
  • Suggested validation: Table_name[Column_name]

This process works but I get warning signs (‌⚠️) in the dropdown UI.

Why do I get them and how can I remove them?

Thank you!

alepalmieri_0-1670864951007.png

alepalmieri_1-1670864968803.png

 

Why is the Base type set to Ref? Should probably be Text.

Steve_0-1670868054287.png

 

Hi sir, may I know the working steps for this? I just wanna add my Enum fields in bulk. Tq

Hi sir, I used this formula: SORT(Glossary[ERS Category])

and gave me the error: Column Name 'Category' in Schema 'ERS Inventory_Schema' of Column Type 'Enum' should have a list of allowed values or allow the user to add other values

 

But i Dont want the field to allow other values. How do I fix this?

finkployd_0-1676439751221.png

finkployd_1-1676439787275.png

What am I doing wrong here?

 

 

 

You are right, it works now. Thank you so much for your help!


@finkployd wrote:

error


Nah, just a warning


@finkployd wrote:

What am I doing wrong here?


Nothing. As long as the values inside of the list are of the same type of the ones you want in your enum, it works

Top Labels in this Space