Hey Coda community,
Does anyone know if it is it possible to retrieve the title of a page for use in a formula?
Hey Coda community,
Does anyone know if it is it possible to retrieve the title of a page for use in a formula?
Looking for the same thing
Specifically this part:
You can use:
ButtonOnPage.Url().ToText().Split("/").Last().Split("_").First()
Hey Chris, thanks for posting your question here. The short answer is unfortunately: no. We don’t currently support pulling a page name formulaically. It’s a commonly requested feature and something we’re considering building out, so definitely stay tuned on that one.
But in the meantime, it seems like Connor’s workaround above could be pretty handy in most situations, so feel free to check that out!
@Lena_Webster I need this too!
My use case is a “help” button that shows a detail popup view. I want to capture which page the user is having the issue on, so the formula would be =thispage or something of the sort.
Hi @Lena_Webster ! I need this one too ! Kind regards
@Chris_Herrmann I’ll try and create a pack for this.
It looks like the Url format for buttons changed and removed the page title in favor of just a shortened ID based URL as of today (it worked for me last night). I guess that’s fair as this was an undocumented feature in the formulas therefore it has not guarantee of stability, but still a major bummer. This severely breaks my workflows for generating invoices and quotes in my Coda setup.
There is an official and supported formula PageName(anObject)
that will return the name of of the page on which anObject
appears.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.