After trying a lot, I found the solution. Thanks for everyone who tried to help me, specially hhas01.Here is the solution: PagesApp.documents[0].placeholderTexts.whose( { tag: thisTag })[i].set(theDate);Notes:1. If you want to replace one placeholderText use [0]2. If you want to replace placeholderText that appears more than once, just repeat the lines as number of times of placeholder using variable [i]