# Custom Module: Live preview using type "callback" is not working in multiple instances

**URL:** <https://community.wpbeaverbuilder.com/t/custom-module-live-preview-using-type-callback-is-not-working-in-multiple-instances/17430>\
**Category:** Developers\
**Tags:** beaver-builder\
**Created:** [June 21, 2023, 2:20pm UTC](https://community.wpbeaverbuilder.com/t/custom-module-live-preview-using-type-callback-is-not-working-in-multiple-instances/17430 "2023-06-21T14:20:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![juls\_maennche](https://community.wpbeaverbuilder.com/letter_avatar_proxy/v4/letter/j/cdc98d/32.png) [@juls\_maennche](https://community.wpbeaverbuilder.com/u/juls_maennche)\
**Post date:** [June 21, 2023, 2:20pm UTC](https://community.wpbeaverbuilder.com/t/custom-module-live-preview-using-type-callback-is-not-working-in-multiple-instances/17430/1 "2023-06-21T14:20:35Z")

</div>

Hi Community,

I am relatively new to building custom modules. In my modules, I have fields that are connected to a preview using “callback” type. Here’s my sample code:

“preview” =\> [  
“type” =\> “callback”,  
“callback” =\> “MyPreviewField”  
]

Now my problem is when having multiple instances or multiple modules on a single page the callback is not applying the changes to the correct module.

What am I missing?
