How append dom ticket use document.querySelector(".ticket-description")? from location ticket_background

Initial
image

Then I want to insert this paragraph after calling the api to successfully load the recording file
image

=>but it can’t find the dom that has the .ticket-description element to insert the dom

This is the code I process in the js file when clicking on a ticket

This is my manifest.json file

Hi @Duong_nguyen_hoang1,

The apps are loaded in a protected iframe. So, it cannot access the parent DOM elements and make changes to it.

The only way to make any changes to the page is to use the platform’s Interface Methods.

Only field changes and button clicks can be simulated. To change the ticket description, you can get the current ticket details from the Data Methods and make an API call to modify the ticket description. It’s not possible in Interface methods.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.