Jump to content

Can I Display Scripts From The Table In My Datapage?

Recommended Posts

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.

Link to comment
Share on other sites

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>
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 ;


Just change the parameter to yours.



Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...