I am assuming that you want the JavaScript to execute in the user's browser. You can embed JavaScript into a form via text block and with text block security set to allow it to execute. if you really want to execute JavaScript code inside a BSFN call you would need to do something creative and unsupported. I can think of a variety of creative ways to call some JavaScript code from C on the JDE logic server. Give a bit more detail on your requirement.