Copied to clipboard

Flag this post as spam?

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


  • nickornotto 397 posts 900 karma points
    Aug 16, 2017 @ 17:07
    nickornotto
    0

    Umbraco back office not selecting in dropdown property values added dynamically

    I am updating a content dynamically using umbraco ContentService and used the below to update the content:

    content.SetValue("currencyForPayments", "USD");
    contentService.Publish(content);
    

    (content is of type IContent)

    Within the content I have 2 properties to update which are rendered as dropdown list on umbraco content edit page.

    I can see that the xml in the db has been updated correctly for them eg.:

    <currency>
        <![CDATA[USD]]>
    </currency>
    <currencyForPayments>
        <![CDATA[USD]]>
    </currencyForPayments>
    

    However when I go to umbraco edit page both dropdowns show blank values selected - basically the value from xml is not selected in the dropdown.

    I logged out and logged again but the problem persists.

    The problem doesn't seem to be with the value rather umbraco not picking it up in the back office.

    If I update these properties through back office - it works.

    Any ideas how to fix it?

  • nickornotto 397 posts 900 karma points
    Aug 23, 2017 @ 12:52
    nickornotto
    0

    Anyone?

Please Sign in or register to post replies

Write your reply to:

Draft