Templating the Number field
The Number field allows content writers to enter or select a number. You can set max and min values for the number.
Before Reading
This article assumes that you have saved the document object in a variable named document as shown in the Retrieve the document object page.
Here's an example that shows how to access the Number field value. In this case the Number field has the API ID price.
Copy
const price = document.price;