Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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.