# Access fields from the model in Data Binding or Custom Code?

**URL:** <https://forum.builder.io/t/access-fields-from-the-model-in-data-binding-or-custom-code/7596>\
**Category:** Visual Editor Help\
**Created:** [January 23, 2025, 12:00am UTC](https://forum.builder.io/t/access-fields-from-the-model-in-data-binding-or-custom-code/7596 "2025-01-23T00:00:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wsaunders](https://avatars.discourse-cdn.com/v4/letter/w/f04885/32.png) [@wsaunders](https://forum.builder.io/u/wsaunders)\
**Post date:** [January 23, 2025, 12:00am UTC](https://forum.builder.io/t/access-fields-from-the-model-in-data-binding-or-custom-code/7596/1 "2025-01-23T00:00:45Z")

</div>

Hello,

I am trying to do something without any further code changes as that’s a different team and requires more planning, time, etc. I wanted to know if there’s any way to access the fields from the model we are using in the visual editor.

We are using the page model to create landing pages, and I want to add a field to the model something like productName. And then wherever we have the product name on the page I want to use data binding to access the field to get the page name. According to some docs I read, I shoul

For example we have a section on our page that has text:  
“Save up to 40% on %Product Name% with your HSA/FSA dollars”, instead of duplicating this text on all our product pages and then manually changing out the page name. I want to use the Combine Text data binding to insert the product name there. I got this to sort of work by creating a Content Input and it adds it to state, but I was hoping there was a way to just directly access the object of the page itself.

Also according to the docs it should be possible to use {{state.\*}} in the text editor to display dynamic data, but it is not working for me. I added the isolate-vm stuff per the instructions on integrating on my localhost, but still nothing

**Builder content link**

> **[Builder.io: Visual Development Platform](https://builder.io/content/86c4a31f0077496096f43ee97dca3ae3_de293883ca8f468698e881c9780dbe69)**
>
> Builder is the only Visual Development Platform that offers an AI-powered design-to-code tool, a visual editor and an enterprise CMS.

**Builder public api key**  
_go to [Builder.io: Visual Development Platform](https://builder.io/account/organization) and copy your PUBLIC api key_

**Code stack you are integrating Builder with**  
NextJS, React

---

<div class="post-metadata">

**Author:** ![Fernando](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@Fernando](https://forum.builder.io/u/Fernando)\
**Post date:** [January 23, 2025, 2:36pm UTC](https://forum.builder.io/t/access-fields-from-the-model-in-data-binding-or-custom-code/7596/2 "2025-01-23T14:36:20Z")

</div>

Hello Will,

You should be able to do this using `context` instead.

Here is a Loom video showing how to do it:

https://www.loom.com/embed/3071c9278e44424bb021a15d10338e5e

I hope the video is helpful.

Thank you,
