Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

string vs choice field??

Rushit Patel2
Tera Guru

Hi All,

while creating a drop-down..why do we give preference to field type "String" instead of "Choice". is there any advantages of selecting one over another?

Thanks,

Rushit Patel

1 ACCEPTED SOLUTION

Paul Wydra III
Tera Expert

Hi Rushit,



I would recommend always using "String" as the field type, even when making a dropdown choice list.



There is no true difference that I am aware of to use "Choice".



There is a greater benefit to keeping the type as "String" when thinking about the future. Whenever a field type is changed, any existing data stored in that field is lost. If you ever want to remove the choice list and just have free-form text in the future, your existing data will not be lost.


View solution in original post

1 REPLY 1

Paul Wydra III
Tera Expert

Hi Rushit,



I would recommend always using "String" as the field type, even when making a dropdown choice list.



There is no true difference that I am aware of to use "Choice".



There is a greater benefit to keeping the type as "String" when thinking about the future. Whenever a field type is changed, any existing data stored in that field is lost. If you ever want to remove the choice list and just have free-form text in the future, your existing data will not be lost.