Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Custom UI Forge not executing javascript

petar novakovic January 6, 2021

I am trying to create a Custom UI Forge app according to the tutorial:
https://developer.atlassian.com/platform/forge/custom-ui/

However, whatever javascript I define in my static/.../index.html file is not executed.

I cannot even execute a simple script such as <html> <script> alert('Hello') </script> </html>

The HTML and css parts are displayed nicely, but javascript is not being executed. I also tried to create a buttom that alerts or toggles on click, the outcome is the same.

Is this some limitation of Forge not limited in the documentation?

Thanks!

3 answers

0 votes
Chris Low November 9, 2022

So it turns out that if React is part of the Custom UI - the basic template includes React - then `react-scripts build` and other commands like that will need to be run.

0 votes
Chris Low November 8, 2022

I also have the same problem...

0 votes
Werare April 3, 2021

same problem

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events