• InterlockSolutions

    (@interlocksolutions)


    Hi there,

    I’m using the “salesforce_w2l_success_message_[form id]” hook to tweak the success message that is displayed after a specific form is completed. I need to add some JavaScript to the message so a PDF document is popped in a new window along with the thank you message.

    When I add the JavaScript code using this hook, the text is filtered before being displayed on the screen, and the JavaScript doesn’t run — it’s simply displayed on the screen since the “<” gets turned to “lt;”. How can I get the hook function’s output to allow JavaScript code to be run?

Viewing 1 replies (of 1 total)
  • Plugin Author Nick Ciske

    (@nickciske)

    You can’t, at present. It’s escaped to as that’s intended to be a message, not code.

    I’ll add a success JS option in the next release (no ETA yet).

Viewing 1 replies (of 1 total)
  • The topic ‘Adding JavaScript to Success Message’ is closed to new replies.