Copied to clipboard

Flag this post as spam?

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


  • Angelo 111 posts 260 karma points
    Nov 09, 2019 @ 13:20
    Angelo
    0

    affect other backoffice inputs in content

    hello

    i have a input auto complete datatype plugin that inserts into other inputs, values programatically, but when i do save and publish the value that is set programtically in the input is not saved ! i can see that i affected the inputs (the values show correctly) but they are not saved !? :(

    my question is ... how can i set other inputs in the my content programatically ?

    thank you

    Angelo

  • Angelo 111 posts 260 karma points
    Nov 10, 2019 @ 20:30
    Angelo
    0

    solved !

    dataClient = [yourDataArrayContainingtheSameAliasAsYourDocType];
    
        $.each(dataClient, function (alias, value) {
                    $.each(editorState.current.tabs, function (tabName, tab) {
                        $.each(tab.properties, function (key, property) {
                            if (property.alias === alias) {
                                property.value = value;
                            }
                        });
                    });
                });
    
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies