Question regarding dynamically updating a button on a set of modals | Community
Skip to main content
aaronlng_92
Level 2
December 2, 2022
Solved

Question regarding dynamically updating a button on a set of modals

  • December 2, 2022
  • 1 reply
  • 595 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by sandeepkumar1981

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

1 reply

sandeepkumar1981Adobe EmployeeAccepted solution
Adobe Employee
December 5, 2022

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