2 Replies Latest reply on Apr 21, 2017 6:02 AM by robertm43450875

    Change story after button click

    robertm43450875

      Hi

       

      I need to change story contents inside onClick button

       

      closeBtn.onClick = function() {

        var stories =  getStories(app.selection); // get all selection stories

        for (var i = 0; i < stories.length; i++) {

            var abc = stories[i].contents = 'fsdfdsfdsfs';

        }

          artDialog.close();

        }

       

      Thanks