# \#custom-code

**URL:** https://forum.builder.io/tag/custom-code/17.md

[Latest](https://forum.builder.io/latest.md) · [Categories](https://forum.builder.io/categories.md) · [Tags](https://forum.builder.io/tags.md)

---

## [Recent changes in UI](https://forum.builder.io/t/recent-changes-in-ui/15491)

<div class="topic-metadata">

**Author:** [@Ecommfox](https://forum.builder.io/u/Ecommfox)\
**Replies:** 1\
**Last updated:** [August 1, 2025, 11:46am UTC](https://forum.builder.io/t/recent-changes-in-ui/15491 "2025-08-01T11:46:58Z")

</div>

Hello , the recent changes in the modern UI and the overall Publish / Fusion sapces changes has some of us wondering wether the settings we usually work with left or are not available because in beta: Publish Space : …

---

## [Context Issue - I am trying to navigate to products page on my site on a click of image & button but unable](https://forum.builder.io/t/context-issue-i-am-trying-to-navigate-to-products-page-on-my-site-on-a-click-of-image-button-but-unable/6595)

<div class="topic-metadata">

**Author:** [@Unnayan](https://forum.builder.io/u/Unnayan)\
**Replies:** 1\
**Last updated:** [October 29, 2024, 3:20pm UTC](https://forum.builder.io/t/context-issue-i-am-trying-to-navigate-to-products-page-on-my-site-on-a-click-of-image-button-but-unable/6595 "2024-10-29T15:20:10Z")

</div>

Hi I am encountering an issue where I am unable to navigate to the products page on my site when clicking on an image or button. I am attaching the details- https://www.awesomescreenshot.com/video/32461743?key=8ea9ac5…

---

## [How do we handle onChange event for subfields?](https://forum.builder.io/t/how-do-we-handle-onchange-event-for-subfields/2281)

<div class="topic-metadata">

**Author:** [@olivela](https://forum.builder.io/u/olivela)\
**Replies:** 2\
**Last updated:** [August 30, 2024, 10:45pm UTC](https://forum.builder.io/t/how-do-we-handle-onchange-event-for-subfields/2281 "2024-08-30T22:45:02Z")

</div>

For my custom component, I have a field of type list. For this first level field, onChange function works perfectly. I also have a subfield of type list under it, for which I wish to add onChange function. This throws…

---

## [Two directional code sync](https://forum.builder.io/t/two-directional-code-sync/6128)

<div class="topic-metadata">

**Author:** [@RasulA](https://forum.builder.io/u/RasulA)\
**Replies:** 0\
**Last updated:** [August 16, 2024, 12:20pm UTC](https://forum.builder.io/t/two-directional-code-sync/6128 "2024-08-16T12:20:45Z")

</div>

Hello. I am currently experimenting with the functionality of the builder and found it very useful as an assistant in creating pages for my website. At the moment I am trying to generate code and synchronize it with my …

---

## [Can a custom validation error be added for Custom Component? If yes, can we prevent user from publishing if the field does not have required format?](https://forum.builder.io/t/can-a-custom-validation-error-be-added-for-custom-component-if-yes-can-we-prevent-user-from-publishing-if-the-field-does-not-have-required-format/2270)

<div class="topic-metadata">

**Author:** [@olivela](https://forum.builder.io/u/olivela)\
**Replies:** 4\
**Last updated:** [March 20, 2024, 6:57pm UTC](https://forum.builder.io/t/can-a-custom-validation-error-be-added-for-custom-component-if-yes-can-we-prevent-user-from-publishing-if-the-field-does-not-have-required-format/2270 "2024-03-20T18:57:17Z")

</div>

I have a custom component with a field of type ‘List’. If user does not add any entry in the list, I want to add a custom error message to user to mention at least one entry is required. I also want to know if we can p…

---

## [Grabbing Data from A Repeated Set of Data](https://forum.builder.io/t/grabbing-data-from-a-repeated-set-of-data/1607)

<div class="topic-metadata">

**Author:** [@hlopez](https://forum.builder.io/u/hlopez)\
**Replies:** 5\
**Last updated:** [February 10, 2022, 9:15pm UTC](https://forum.builder.io/t/grabbing-data-from-a-repeated-set-of-data/1607 "2022-02-10T21:15:20Z")

</div>

I am trying to grab the specific data from each repeated element. I created a binding for a set of data to display content cards. The cards are repeating but I haven’t been able to figure out how to access specific card …

---

## [Detecting logged in status in a builder page](https://forum.builder.io/t/detecting-logged-in-status-in-a-builder-page/2766)

<div class="topic-metadata">

**Author:** [@Richard\_at\_the\_pools](https://forum.builder.io/u/Richard_at_the_pools)\
**Replies:** 5\
**Last updated:** [November 7, 2022, 1:25pm UTC](https://forum.builder.io/t/detecting-logged-in-status-in-a-builder-page/2766 "2022-11-07T13:25:07Z")

</div>

Hi On the load of my builder page, I obtain the logged in status using the custom code below (entered in the data tab). This works fine. The player can then log in using a button in the header. The login process is via …

---

## [How do/can I access content Inputs in an isServer code block?](https://forum.builder.io/t/how-do-can-i-access-content-inputs-in-an-isserver-code-block/2763)

<div class="topic-metadata">

**Author:** [@geoff.talbot](https://forum.builder.io/u/geoff.talbot)\
**Replies:** 3\
**Last updated:** [October 27, 2022, 3:56pm UTC](https://forum.builder.io/t/how-do-can-i-access-content-inputs-in-an-isserver-code-block/2763 "2022-10-27T15:56:27Z")

</div>

Builder content link Builder public api key 5f12d16ca07c4964a34dfba2845f3426 What are you trying to accomplish I have an external API that provides product data. I want to create a product card symbol that has a pro…

---

## [Builder in custom code is not defined](https://forum.builder.io/t/builder-in-custom-code-is-not-defined/2736)

<div class="topic-metadata">

**Author:** [@Richard\_at\_the\_pools](https://forum.builder.io/u/Richard_at_the_pools)\
**Replies:** 11\
**Last updated:** [October 20, 2022, 2:06pm UTC](https://forum.builder.io/t/builder-in-custom-code-is-not-defined/2736 "2022-10-20T14:06:32Z")

</div>

I have added some custom code and want to run code on the client side. I have followed the information at Adding custom code in the Builder.io visual editor - Builder.io. However, When I run my code I get the error “Buil…

---

## [Can we write custom events for custom components?](https://forum.builder.io/t/can-we-write-custom-events-for-custom-components/2387)

<div class="topic-metadata">

**Author:** [@olivela](https://forum.builder.io/u/olivela)\
**Replies:** 1\
**Last updated:** [July 15, 2022, 4:17pm UTC](https://forum.builder.io/t/can-we-write-custom-events-for-custom-components/2387 "2022-07-15T16:17:35Z")

</div>

Currently I have a custom component called ‘Menu’. To use this, a ‘Menu’ model is created, thus it gets tracked easily in insights as all models are tracked. I also wish to track ‘Submenu’ which is a subfield for the cu…

---

## [Can we have a builder component inside custom component?](https://forum.builder.io/t/can-we-have-a-builder-component-inside-custom-component/2280)

<div class="topic-metadata">

**Author:** [@olivela](https://forum.builder.io/u/olivela)\
**Replies:** 2\
**Last updated:** [June 17, 2022, 11:30pm UTC](https://forum.builder.io/t/can-we-have-a-builder-component-inside-custom-component/2280 "2022-06-17T23:30:25Z")

</div>

Here is the scenario I’m trying to achieve: I have a list of columns Each column has either a text or a custom styled component For the text, I have used a simple custom field of type string For the other option, I nee…

---

## [Can I add multiple default values for list items?](https://forum.builder.io/t/can-i-add-multiple-default-values-for-list-items/2271)

<div class="topic-metadata">

**Author:** [@olivela](https://forum.builder.io/u/olivela)\
**Replies:** 1\
**Last updated:** [June 15, 2022, 2:52pm UTC](https://forum.builder.io/t/can-i-add-multiple-default-values-for-list-items/2271 "2022-06-15T14:52:35Z")

</div>

I have a custom component with a field of type ‘list’. By default, I want to have certain entries already for the list which the user can edit. e.g. Field name is ‘MenuItems’ It has subfield ‘MenuItemName’. By defaul…

---

## [How to add custom components to custom models](https://forum.builder.io/t/how-to-add-custom-components-to-custom-models/1619)

<div class="topic-metadata">

**Author:** [@radikris](https://forum.builder.io/u/radikris)\
**Replies:** 11\
**Last updated:** [January 26, 2022, 9:57pm UTC](https://forum.builder.io/t/how-to-add-custom-components-to-custom-models/1619 "2022-01-26T21:57:18Z")

</div>

Hey! I created a custom component using React, and it appears in my Page model editor, although I would like to use this custom component inside one of my custom model. How can I do this? I want to reuse this navigat…

---

## [Save custom template of a custom field](https://forum.builder.io/t/save-custom-template-of-a-custom-field/1616)

<div class="topic-metadata">

**Author:** [@radikris](https://forum.builder.io/u/radikris)\
**Replies:** 1\
**Last updated:** [January 24, 2022, 7:54pm UTC](https://forum.builder.io/t/save-custom-template-of-a-custom-field/1616 "2022-01-24T19:54:22Z")

</div>

Hey, I followed your tutorial on how to add environment (production, development) with custom fields, and now I would like to save this ‘enum template’ because I would like to reuse it in multiple custom models, without …

---

## [Running Custom Javascript SSR doesn't seem to work](https://forum.builder.io/t/running-custom-javascript-ssr-doesnt-seem-to-work/81)

<div class="topic-metadata">

**Author:** [@ismailp](https://forum.builder.io/u/ismailp)\
**Replies:** 22\
**Last updated:** [July 30, 2020, 4:22pm UTC](https://forum.builder.io/t/running-custom-javascript-ssr-doesnt-seem-to-work/81 "2020-07-30T16:22:15Z")

</div>

I’m trying to run some custom JS from within my symbol in SSR mode but can’t seem to get it to work. I have an input field named product with the type map. I’m logging my api and it doesn’t seem to hit the endpoint at a…

---

## [How can you add code to the header of a specific builder page?](https://forum.builder.io/t/how-can-you-add-code-to-the-header-of-a-specific-builder-page/59)

<div class="topic-metadata">

**Author:** [@john](https://forum.builder.io/u/john)\
**Replies:** 5\
**Last updated:** [April 28, 2020, 8:57pm UTC](https://forum.builder.io/t/how-can-you-add-code-to-the-header-of-a-specific-builder-page/59 "2020-04-28T20:57:49Z")

</div>

How can you add code to the header of a specific builder page (i.e. not across all pages)?
