Support

Account

Home Forums Bug Reports Change type of field from text to select

Solving

Change type of field from text to select

    • Mattia

    • January 21, 2021 at 5:06 am

    Hello,
    I made a change to the field type from “Text”

    https://postimg.cc/3yWhhnJx

    to “Select”

    https://postimg.cc/8jBNm70N

    allowing multiple choice

    https://i.postimg.cc/RV04WTQp/6.png

    Previously I entered the textual values ​​separated by commas

    https://postimg.cc/mPm4K04n

    By making this change, I realized that it is no longer possible to go back to the values ​​entered in previous posts

    https://postimg.cc/ns5JhBCY

    For new posts I can view the selection made thanks to the gray marking

    https://postimg.cc/jwcyfHJm

    is there a way to view old posts by highlighting previously selected fields?

    Thanks, Matt

  • https://www.advancedcustomfields.com/resources/acf-load_value/

    and convert value from a string to an array

  • That will only work if all of the values in the string are represented in the new select field.

    • Mattia

    • January 25, 2021 at 3:51 am

    Jhon, thanks for taking your time. Your suggestion shows how to rename a previously entered value and it works (maybe I’ll need it in the future). I think I made the mistake at the beginning of the project a few years ago by not providing the possibility of inserting multiple values ​​for that type of field: I started with a text type field and I continued with that by inserting values ​​separated by commas . I will continue to use it like this for this project. The conversion of the field type from text to select creates the inconvenience that I have exposed in the question and that I cannot solve by myself. Thanks again

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.