Forum Discussion
EloyseEllerman
4 years agoQrew Member
I agree this no longer works. The hack that I thought of was to add a hidden div to a formula rich text field with a specific id that I could then reference in my js file.
So, if you want to pass the value of the "Name" field as a variable called "my_name" ...
The formula rich text field:
"<div id=QBU_name style='display:none'>" & [Name] & "</div>"
in the .js file:
var my_name = document.getElementById("QBU_name").innerHTML;
------------------------------
Eloyse Ellerman
------------------------------
So, if you want to pass the value of the "Name" field as a variable called "my_name" ...
The formula rich text field:
"<div id=QBU_name style='display:none'>" & [Name] & "</div>"
in the .js file:
var my_name = document.getElementById("QBU_name").innerHTML;
------------------------------
Eloyse Ellerman
------------------------------