Quote:
Originally Posted by adun
Thanks a lot for this trick!!
It is indeed very powerful; but please post at least an small HOWTO. Did you manage the Javascript part?
|
Surely the gurus around here will provide better examples. In the meantime here are my 2 cents. It seems that, at least to some extent, it is possible to embed some JavaScript
:
1-Create a custom column; set the type as “Long text, like…”
2-Click edit metadata and select the “Custom metadata” tab.
3-Slect the "HTML Source" tab.
4- Copy and paste the following code:
<div>
<input type="button" value="Click me!" onclick="JavaScript
:alert('So you did it!')"></div>
<p></p>
<div>
<button type="button" onclick="JavaScript
:alert('You did it again!')">Click here.</button>
</div>
5-Click OK to close the Metadata editor.
Now on the “book details view” you will see two buttons that will pop up scripted messages.
Good luck!