6 Replies Latest reply on May 17, 2018 10:53 AM by Adobe 847298

    Add TextVariable to TextFrame

    Adobe 847298

      How do I add a TextVariable to a TextFrame in InDesign?


      I am creating the TextVariable like this.

      var textVariable = app.activeDocument.textVariables.add({name: "My Name"});


      I'm coming from Illustrator scripting where you have a content variable attached to each text frame object. I'm confused on how to link these text variables to text frames in InDesign.