onChangeSelection

From RPTools Wiki
Revision as of 19:57, 4 July 2023 by Taustin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This event is triggered whenever the user selects a token.

As a frame-based event, a frame containing the event code has to be opened.

Set up

Create a frame that has this special html tag in it:

<link rel='onChangeSelection' type='macro' href='macroLink'>

Replace macroLink by an actual macroLinkText-call to a macro of your choice (the returned value of macroLinkText()). A common practice is to call the frame opening macro itself to actualize the content.

See Also

Forms tutorial#Events