- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2018 06:42 AM
Hi,
Can anyone please suggest, how can we convert field type of Checkbox to Dropdown(choice list) with choices as Yes No?
I want to change existing field type only as new field creation will cause field name change and will impact scripts where this field is used(Have many fields to make same change)
Thanks in advance
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2018 06:58 AM
As Ashutosh noted, you need to create a new field or you will have data issues. You may not even be able to convert a True/false to a choice list. The system restricts certain types of data type changes.
If you want the field name to be the same, then I recommend the following approach.
- Create a new choice field ex: u_choice1 and populate it with Yes/No values
- Use a script to copy your true values to Yes, and false values to no from the old field (u_bool) to the new field (raise your hand if you need help with this part
- Delete the old field (u_bool)
- Create a new u_bool field of type choice
- Use another script to copy field values from u_choice1 to u_bool
- Delete u_choice1
Now you have a u_bool field of type choice with the true/false values as yes/no values.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2018 06:47 AM
HI,
I will suggest creation of new field. Because if you change the type you can run into some issue's.
You can delete existing checkbox and then create a Yes/No field with same name and then your work will be done.
Before you create field you should delete a field with same name.
As a best practice we create new field instead of changing there types after creation.
Thanks,
Ashutosh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2018 06:58 AM
As Ashutosh noted, you need to create a new field or you will have data issues. You may not even be able to convert a True/false to a choice list. The system restricts certain types of data type changes.
If you want the field name to be the same, then I recommend the following approach.
- Create a new choice field ex: u_choice1 and populate it with Yes/No values
- Use a script to copy your true values to Yes, and false values to no from the old field (u_bool) to the new field (raise your hand if you need help with this part
- Delete the old field (u_bool)
- Create a new u_bool field of type choice
- Use another script to copy field values from u_choice1 to u_bool
- Delete u_choice1
Now you have a u_bool field of type choice with the true/false values as yes/no values.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2018 07:29 AM
Thank you so much for quick help Chuck.. 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2018 05:33 AM
If you've got multiple Yes/No choice lists, I recommend you 'connect' their choices so you only have to maintain them once and not repeated everywhere. See the quick tip on Episode 48 of TechNow.