I was able to get the script to work, but only under certain conditions.
First, the script only worked when I used a table as the data source for my datapage. A view data source did not allow the script to function properly. I made sure to use the exact name of the field in my view, but did not work. I then tried to change the data source to the parent table and changed the name of the field from that table and it worked. Any Idea as to why a view would not work?
Second, even though I was able to get it work using the parent table, it would only work in a preview, but