Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Target Community Q&A Coffee Break: On Wednesday, February 1 at 8am PT, Brent Kostak of the Adobe Target Product team will be joining us to answer your Target questions. To register and for more information, follow the link to the right.

Question regarding dynamically updating a button on a set of modals

Avatar

Level 1

Hello everyone, I'm currently working on a project where I'm trying to update the text of a button on a set of modals. The problem I am running into is that with the custom code option in Target, the script runs in the head of the document, and I have not been able to get a click event to work to perform the change when the modal is opened. Has anyone performed a similar test or function in target? I can go through and update each modal with the visual editor, but I'm concerned that this will affect the page loading time. Any suggestions would be greatly appreciated.

1 Reply

Avatar

Employee

Can you try to put a wait on your js script method so that it get fire when you have click event on page?