Need help showing Notes in an alert box. Notes is a multiline text and alert chokes on it.

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered
I'm trying to show my notes in an alert box and is not able to do so where there are more than one line in the notes field and need some help.

Formula text field with HTML =

"<a href='javascript:void(0)' onclick=\"window.alert(' " &ToText([Notes]) & " ');return false;\"> Notes</a>"

Photo of Tribs


  • 20 Points

Posted 3 years ago

  • 0
  • 1
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,434 Points 20k badge 2x thumb
It is not obvious how do to this but thanks to the awesomeness of JavaScript it can be easily done:

Pastie Database

Note that this formula uses backticks characters (upper left key on keyboard). I made other simplifications and formatting of your formula.