Copied to clipboard

Flag this post as spam?

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


  • David Walker 17 posts 88 karma points
    Jan 26, 2022 @ 09:14
    David Walker
    0

    How and where do I populate a Backend dropdown from an external JSON api in Version 9

    Is it possible to populate drop-down prevalues from an external source in the back end?

    Example

    I have a Blog entry and want to add an Author Dropdown which should be populated from and external API.

    Dropdown to be populated

    Where would I place this code? Are there any examples out there? I can see how to do this when rendering a frontend page, but not the backend.

    Thanks in advance.

  • Dennis 52 posts 258 karma points
    Jan 26, 2022 @ 10:51
    Dennis
    1

    Hi there!

    To create a custom dropdown with values from an external api, you would need to create a custom property editor.

    You can find more information about custom property editors in the umbraco documentation.

  • Kevin Jump 2114 posts 13360 karma points MVP 5x c-trib
    Jan 26, 2022 @ 11:00
    Kevin Jump
    2

    Hi

    you might be able to do this with the contentment package.

    https://github.com/leekelleher/umbraco-contentment

    it allows you to have a json data source for dropdowns/etc.

  • David Walker 17 posts 88 karma points
    Jan 28, 2022 @ 14:26
    David Walker
    0

    Thank you both for your answers. I've used the Contentment package first and that's working fine.

    I will have a play with creating custom property editors too.

    Best regards

Please Sign in or register to post replies

Write your reply to:

Draft