0 Replies Latest reply on Apr 16, 2013 2:42 PM by Symbolic3

    Maintain cross-reference link when updating text frame contents


      I've written a javascript that will parse though every page in my document and update the content in my page titles.  It updates the number scheme in the form x.y.z [title] when I've deleted pages and need the numbering scheme updated.  Some of these page titles have cross-references linking to them from sections of the document. The script essentially takes the contents of a text frame and replaces it with a new string that has the corrent number scheme.  Whenever this happens, it breaks the cross-reference linking to that paragraph text.  How do I maintain the cross-reference link to every text frame while updating its contents?