I needed the url of the current document and found the ThisDocument.Url() formula which works great. I noticed thought that it says this is a deprecated formula. Is there a different formula i should be using for this?
1 Like
You can also use ThisDocument.ObjectLink(). Don’t know if there’s any difference between the two, though.
1 Like
Since there is not an equivelent for “this page”
(there is no thisPage in the formula language)
you can get the URL of any given page in your document
with
ObjectLink( MyPage )
where MyPage is either the name of a formula or a table that appears on that page.
So we often place a dummy formula at the end of a page
- that just returns a single space (so that it is invisible)
" " - give the formula a name that looks like the page name eg.
MyPage - then use the formula
ObjectLink( MyPage )to get the page URL - you can then format the resulting URL as a Text, Card, or Button
- you can use that formula anywhere in your document
You can also use the same formula inside a button that will switch the user to a given page
OpenWindow( ObjectLink( MyPage ) )
Max
5 Likes