kathysoup Posted January 21, 2015 Report Share Posted January 21, 2015 Hi, I have some script in the table that I need to be able to run on my DataPage. Can I do that? Thanks. Quote Link to comment Share on other sites More sharing options...
Jan Posted January 22, 2015 Report Share Posted January 22, 2015 Hello kathysoup, As far as I know, you cannot run scripts from tables for security reasons. But you can use the data from fields as values of variables. Also you can add several scripts to the Footer and run one of them depend on the value of a field. I hope, it helps. Quote Link to comment Share on other sites More sharing options...
reneeforest1983 Posted January 22, 2015 Report Share Posted January 22, 2015 Hi Kathysoup, I was able to do that by using parameters and this javascript in the html block of the data page <div id ="cb_code">[@field:Parameter]</div> <script> var v_text = document.getElementById("cb_code").innerHTML ; v_text = v_text.replace(/</gi,'<') ; v_text = v_text.replace(/>/gi,'>') ; document.getElementById("cb_code").innerHTML = v_text ; </script> Just change the parameter to yours. Cheers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.