Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • ewuski 88 posts 234 karma points
    Apr 18, 2022 @ 16:53
    ewuski
    0

    Problem with data type compatibility: radio button list, drop down, checkbox list

    I am migrating from Umbraco 7 to 8 and 9 and I have problem with data type compatibility.

    Basically in v7 data types such as radio button selection, checkboxes, dropdown values were stored as data type value ids or array of ids, eg.

    1,2,3,4

    In v 9 they are stored as literal values or arrays of literal values eg.

    ["French","English","Spanish","Japanese"]

    So the result is - after migrating - that the values are present in the database but do not show in the CMS.

    Do I really need to convert every content to use the literals?

    Or is there any way to keep the previous notation of the values eg. as data type ids in v9?

  • ewuski 88 posts 234 karma points
    Apr 25, 2022 @ 21:38
    ewuski
    101

    I have found the issue why the data is not showing up in the CMS after the migration. This is true only for Radio button list values. Checkboxes and dropdowns are showing well.

    Yes, the property data of type Radio button list in Umbraco 8 is stored as string (instead of integer id as in Umbraco 7).

    I have reported the issue with Radio button list values here: https://github.com/umbraco/Umbraco-CMS/issues/12301

    And I also added there a quick fix to the issue.

Please Sign in or register to post replies

Write your reply to:

Draft