[Reactive OutSystemsUI Dark Mode] manageDarkTheme is not defined error + instructions
instant-dark-theme
Forge component by José Pedro Proença
Application Type
Reactive

Dear,


When trying to implement, I get this error: "manageDarkTheme is not defined".

I don't find the instructions on how to make it work.

Please add instructions on how to resolve error and implement dark theme properly.


Thank you!

Error Dark theme.JPG

mvp_badge
MVP
Solution

Hi Xrisitna,

I suggest you check whether the layout or the screen in which you have implemented the DarkMode toggle functionality references the required JS file from the respective Asset TH module. For example, refer to the below screen capture, which points to the exact implementation in the Asset demo application.

I hope this helps you!


Kind regards,

Benjith Sam

Hi Xristina,

AsBenjith Sam said, maybe you didn't add the script on your block.

Would you please share your oml file?

We will add documentation soon.


Cheers,

Luís


That was indeed the case, now it works. Thank you very much! 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.