Forums

Code inside load js event visible in output form

nassausky 14 Jun, 2013
Hi,

I put some javascript code inside the load js event (within the on load event) but was surprised that the code was visible in the final output. The help inside the load js event says not to put it inside a script tag. Any ideas on how to leave the js there (which is functioning as a dynamic calculator) but not having it visible to the end user.

I must be doing something wrong.

Thanks!
nassausky 14 Jun, 2013
Sorry that was a user error.

I actually pasted the js code in 2 places. I also put it in the on submit event. Once I removed it from the on submit event (because I wanted it dynamically to calculate values) it cleared out the js code from the output html code.

Thanks and sorry again.
This topic is locked and no more replies can be posted.