Forum Page Code isn't Exporting - Is there a way around it?

While in developer mode on my site, I went to the “FORUM page code” and added some code that should work depending on the event. It works fine on other computers but on the computer that we have to use, the Javascript functions’ exporting fails thus the code that should execute doesn’t. I realized that even though the custom code doesn’t export, the javascript embedded with the actual site (like the preset animations and such) work fine. Is there is a way around having to use the Javascript in the website’s FORUM Page Code, such as having it in an HTML element or something? (I know the javascript code isn’t incorrect - it just doesn’t export to the browser correctly.)

Code:


export function text4_click(event) {
if ($w(‘#text5’).collapsed) {
$w(‘#text5’).expand();
} else {
$w(‘#text5’).collapse();
}
}

export function text4_mouseIn(event) {
$w(‘#text4’).html = “<p class="p1" style="font-size:24px; text-align:center"><span style="font-weight:bold;"><span style="font-family:times new roman,times,serif"><span style="font-size:24px"><span class="color_20">Signing Up

”;
}
export function text4_mouseOut(event) {
$w(‘#text4’).html = “<p class="p1" style="font-size:24px; text-align:center"><span style="font-family:times new roman,times,serif"><span style="font-size:24px"><span class="color_20">Signing Up

”;

}

Please paste Code to see it

I’ve edited it in. Hope that’s okay.

Hi,
Do you try to use Wix Code with your Forum page? Note that there’s no integration of Wix Code with Wix Forum. If this is not what you were referring, please clarify what you were trying to achieve. A link to your site can be helpful too.

Thanks,
Tal

I’m just using my code on a page called forum. In that page there is a text box with the words “Signing Up” in it and under it there are instructions. The first function collapses/expands the instructions - the 2nd changes the text: “Signing Up” to bold when they hover over it and the 3rd changes it back to normal text when they stop hovering over it. I’m not using it with Wix Forum.