Answered
Interactive button script
hello everyone, how can I write the code part of a script that replaces the text inside an interactive button?
Below is an example on how to change the content of a textframe, but for buttons? I see from the Layer tab that they have a subgroup enclosed in square brackets [Normal].
var casellaTesto = documentoAperto.pages[0].textFrames.itemByName("casellaDescrizione");
var newContents = "nuvo testo";
if (casellaTesto.isValid && casellaTesto.contents.length > 0) {
casellaTesto.contents = newContents;
}