# How to make Make Alpha dialog or popup dynamic

**URL:** https://community.neutrinos.com/t/how-to-make-make-alpha-dialog-or-popup-dynamic/701
**Category:** Neutrinos Platform
**Tags:** neutrinos-alpha
**Created:** [May 6, 2025, 8:43am UTC](https://community.neutrinos.com/t/how-to-make-make-alpha-dialog-or-popup-dynamic/701 "2025-05-06T08:43:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Simphiwe](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/s/3be4f8/32.png) [@Simphiwe](https://community.neutrinos.com/u/Simphiwe)
#### Post date: [May 6, 2025, 8:43am UTC](https://community.neutrinos.com/t/how-to-make-make-alpha-dialog-or-popup-dynamic/701/1 "2025-05-06T08:43:16Z")

</div>

Hi all

Am trying to use one dialog for add and edit. Instead of using two which are the same but differs in the header.

How can I make an alpha dialog header dynamic by string interpolating it instead of a static string.  
I tried string interpolation on the header field but shows a variable name I have interpolated.  
However when I console log it on the custom code it logs a value of a variable that is interpolated.

Please see the images below for better reference.

Thank you in advance.

 ![dynamic header](https://community.neutrinos.com/uploads/default/original/1X/ea0d1e35688aaae73c2915561cf380374fbe589e.png)  
 ![output](https://community.neutrinos.com/uploads/default/original/1X/0aaa18ce652648f84d7c1465169ddcf403eb5690.png)

---

<div class="post-metadata">

### Author: ![Eldho](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/e/c6cbf5/32.png) [@Eldho](https://community.neutrinos.com/u/Eldho)
#### Post date: [May 6, 2025, 9:52am UTC](https://community.neutrinos.com/t/how-to-make-make-alpha-dialog-or-popup-dynamic/701/2 "2025-05-06T09:52:22Z")

</div>

@vaibhav @gaurav.pandey @Irfan_Ali please help

---

<div class="post-metadata">

### Author: ![Simphiwe](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/s/3be4f8/32.png) [@Simphiwe](https://community.neutrinos.com/u/Simphiwe)
#### Post date: [May 6, 2025, 10:05am UTC](https://community.neutrinos.com/t/how-to-make-make-alpha-dialog-or-popup-dynamic/701/3 "2025-05-06T10:05:13Z")

</div>

Found the below snippet code which could really assist me but console logged pages is empty.  
And is this [http://el.name/](http://el.name/) the url of the page ??

const pages = await ap.pages.get();  
console.log(pages)  
const newPage = pages.find((el)=\> [el.name](http://el.name/) == ‘Page name’);  
ap.dialog.open({  
page: newPage,  
height:‘50’,  
width: ‘50’,  
header: ‘Title’  
})

---

<div class="post-metadata">

### Author: ![Shamnad\_KS](https://community.neutrinos.com/user_avatar/community.neutrinos.com/shamnad_ks/32/272_2.png) [@Shamnad\_KS](https://community.neutrinos.com/u/Shamnad_KS)
#### Post date: [May 6, 2025, 11:26am UTC](https://community.neutrinos.com/t/how-to-make-make-alpha-dialog-or-popup-dynamic/701/4 "2025-05-06T11:26:29Z")

</div>

Hi @Simphiwe , Try using `{{co.abc}}` in the header field instead of string interpolation. It should display the dynamic value correctly.
