Formula to Retrieve Page Title

Hey Coda community,

Does anyone know if it is it possible to retrieve the title of a page for use in a formula?

6 Likes

Looking for the same thing :+1:

Specifically this part:

You can use:

ButtonOnPage.Url().ToText().Split("/").Last().Split("_").First()
1 Like

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!

5 Likes

@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.

2 Likes

Hi @Lena_Webster ! :slight_smile: I need this one too ! Kind regards

1 Like

@Chris_Herrmann I’ll try and create a pack for this.

2 Likes

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.

image

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.