Notion
Notion
"This page" Isn't a Property in Notion: How to Fix Your Button Formula
"This page" Isn't a Property in Notion: How to Fix Your Button Formula
"This page" Isn't a Property in Notion: How to Fix Your Button Formula
"This page" Isn't a Property in Notion: How to Fix Your Button Formula

If you pasted a formula into a Notion button and it didn't work, this is probably why.
And it's not your fault. Most AI tools get this one thing wrong.

The quick fix
If your formula looks like this:
prop("This page").prop("Roll")Change it to this:
context("This page").prop("Roll")And if it's an automation, use this:
context("Trigger page").prop("Roll")That's it. Now let me explain why.
Why your formula breaks
Inside Notion's formula editor, a button formula looks like this:

This page.Roll
So when you ask ChatGPT or any AI to write you a button formula, it sees "This page" and thinks it's a property. So it writes prop("This page").
But "This page" isn't a property. It's a context. It means the page where you clicked the button.
And Notion only understands it in plain text when you write it with the context() function.
How it works for buttons
When you write a formula as text, for example in ChatGPT, in a doc, or in a tutorial, you use:
context("This page")Then add .prop() for any property you want from that page:
context("This page").prop("Status")
context("This page").prop("Due")
context("This page").prop("Count") + 1Paste it into the button's formula box, and Notion turns it back into the "This page" token automatically.

How it works for automations
Automations work the same way, but the context has a different name. Instead of "This page", it's "Trigger page", the page that triggered the automation.
context("Trigger page").prop("Due")And if you defined a custom variable earlier in your button or automation, you use var():
var("Variable name")Tell your AI this
Next time you ask AI for a Notion button formula, add this line to your prompt:
"This page" and "Trigger page" are contexts, not properties. Write them as context("This page") and context("Trigger page"), not prop().
It'll save you a lot of back and forth.
One more thing
If you're sharing a formula in a code block, you'll sometimes see it labeled as notion or javascript. That label is just for display. It's not what makes the formula work. The context() part is.
Want more Notion tips like this?
I share small Notion fixes like this on my YouTube channel, while building my own systems.
New to Notion? Start with my free template, it's a simple way to get organized without building everything from scratch.
👉 Get the free template
Want the system I use every day? Second Brain 7.0 runs my tasks, habits, goals and finances in one place.
👉 See Second Brain 7.0

If you pasted a formula into a Notion button and it didn't work, this is probably why.
And it's not your fault. Most AI tools get this one thing wrong.

The quick fix
If your formula looks like this:
prop("This page").prop("Roll")Change it to this:
context("This page").prop("Roll")And if it's an automation, use this:
context("Trigger page").prop("Roll")That's it. Now let me explain why.
Why your formula breaks
Inside Notion's formula editor, a button formula looks like this:

This page.Roll
So when you ask ChatGPT or any AI to write you a button formula, it sees "This page" and thinks it's a property. So it writes prop("This page").
But "This page" isn't a property. It's a context. It means the page where you clicked the button.
And Notion only understands it in plain text when you write it with the context() function.
How it works for buttons
When you write a formula as text, for example in ChatGPT, in a doc, or in a tutorial, you use:
context("This page")Then add .prop() for any property you want from that page:
context("This page").prop("Status")
context("This page").prop("Due")
context("This page").prop("Count") + 1Paste it into the button's formula box, and Notion turns it back into the "This page" token automatically.

How it works for automations
Automations work the same way, but the context has a different name. Instead of "This page", it's "Trigger page", the page that triggered the automation.
context("Trigger page").prop("Due")And if you defined a custom variable earlier in your button or automation, you use var():
var("Variable name")Tell your AI this
Next time you ask AI for a Notion button formula, add this line to your prompt:
"This page" and "Trigger page" are contexts, not properties. Write them as context("This page") and context("Trigger page"), not prop().
It'll save you a lot of back and forth.
One more thing
If you're sharing a formula in a code block, you'll sometimes see it labeled as notion or javascript. That label is just for display. It's not what makes the formula work. The context() part is.
Want more Notion tips like this?
I share small Notion fixes like this on my YouTube channel, while building my own systems.
New to Notion? Start with my free template, it's a simple way to get organized without building everything from scratch.
👉 Get the free template
Want the system I use every day? Second Brain 7.0 runs my tasks, habits, goals and finances in one place.
👉 See Second Brain 7.0

If you pasted a formula into a Notion button and it didn't work, this is probably why.
And it's not your fault. Most AI tools get this one thing wrong.

The quick fix
If your formula looks like this:
prop("This page").prop("Roll")Change it to this:
context("This page").prop("Roll")And if it's an automation, use this:
context("Trigger page").prop("Roll")That's it. Now let me explain why.
Why your formula breaks
Inside Notion's formula editor, a button formula looks like this:

This page.Roll
So when you ask ChatGPT or any AI to write you a button formula, it sees "This page" and thinks it's a property. So it writes prop("This page").
But "This page" isn't a property. It's a context. It means the page where you clicked the button.
And Notion only understands it in plain text when you write it with the context() function.
How it works for buttons
When you write a formula as text, for example in ChatGPT, in a doc, or in a tutorial, you use:
context("This page")Then add .prop() for any property you want from that page:
context("This page").prop("Status")
context("This page").prop("Due")
context("This page").prop("Count") + 1Paste it into the button's formula box, and Notion turns it back into the "This page" token automatically.

How it works for automations
Automations work the same way, but the context has a different name. Instead of "This page", it's "Trigger page", the page that triggered the automation.
context("Trigger page").prop("Due")And if you defined a custom variable earlier in your button or automation, you use var():
var("Variable name")Tell your AI this
Next time you ask AI for a Notion button formula, add this line to your prompt:
"This page" and "Trigger page" are contexts, not properties. Write them as context("This page") and context("Trigger page"), not prop().
It'll save you a lot of back and forth.
One more thing
If you're sharing a formula in a code block, you'll sometimes see it labeled as notion or javascript. That label is just for display. It's not what makes the formula work. The context() part is.
Want more Notion tips like this?
I share small Notion fixes like this on my YouTube channel, while building my own systems.
New to Notion? Start with my free template, it's a simple way to get organized without building everything from scratch.
👉 Get the free template
Want the system I use every day? Second Brain 7.0 runs my tasks, habits, goals and finances in one place.
👉 See Second Brain 7.0

If you pasted a formula into a Notion button and it didn't work, this is probably why.
And it's not your fault. Most AI tools get this one thing wrong.

The quick fix
If your formula looks like this:
prop("This page").prop("Roll")Change it to this:
context("This page").prop("Roll")And if it's an automation, use this:
context("Trigger page").prop("Roll")That's it. Now let me explain why.
Why your formula breaks
Inside Notion's formula editor, a button formula looks like this:

This page.Roll
So when you ask ChatGPT or any AI to write you a button formula, it sees "This page" and thinks it's a property. So it writes prop("This page").
But "This page" isn't a property. It's a context. It means the page where you clicked the button.
And Notion only understands it in plain text when you write it with the context() function.
How it works for buttons
When you write a formula as text, for example in ChatGPT, in a doc, or in a tutorial, you use:
context("This page")Then add .prop() for any property you want from that page:
context("This page").prop("Status")
context("This page").prop("Due")
context("This page").prop("Count") + 1Paste it into the button's formula box, and Notion turns it back into the "This page" token automatically.

How it works for automations
Automations work the same way, but the context has a different name. Instead of "This page", it's "Trigger page", the page that triggered the automation.
context("Trigger page").prop("Due")And if you defined a custom variable earlier in your button or automation, you use var():
var("Variable name")Tell your AI this
Next time you ask AI for a Notion button formula, add this line to your prompt:
"This page" and "Trigger page" are contexts, not properties. Write them as context("This page") and context("Trigger page"), not prop().
It'll save you a lot of back and forth.
One more thing
If you're sharing a formula in a code block, you'll sometimes see it labeled as notion or javascript. That label is just for display. It's not what makes the formula work. The context() part is.
Want more Notion tips like this?
I share small Notion fixes like this on my YouTube channel, while building my own systems.
New to Notion? Start with my free template, it's a simple way to get organized without building everything from scratch.
👉 Get the free template
Want the system I use every day? Second Brain 7.0 runs my tasks, habits, goals and finances in one place.
👉 See Second Brain 7.0







