# How to put two radio inputs in alert?

**URL:** <https://forum.ionicframework.com/t/how-to-put-two-radio-inputs-in-alert/98424>\
**Category:** ionic-v3\
**Created:** [July 17, 2017, 8:11am UTC](https://forum.ionicframework.com/t/how-to-put-two-radio-inputs-in-alert/98424 "2017-07-17T08:11:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stewchicken](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@stewchicken](https://forum.ionicframework.com/u/stewchicken)\
**Post date:** [July 17, 2017, 8:11am UTC](https://forum.ionicframework.com/t/how-to-put-two-radio-inputs-in-alert/98424/1 "2017-07-17T08:11:46Z")

</div>

below code works perfect, but i need add another radio input for delivery (standard delievery, express delievery), how to add this radio input into the alert?

any hints will be more than welcome!

advanceSearch(): void{  
let prompt = this.alertCtrl.create({  
title: ‘payment’,  
message: 'choose payment ',  
inputs : [  
{  
type:‘radio’,  
label:'paypal’  
value:‘paypal’  
},  
{  
type:‘radio’,  
label:'bank transfer’  
value:‘bank transfer’  
}

],  
buttons : [  
{  
text: “Cancel”,  
handler: data =\> {  
console.log(“cancel clicked”);  
}  
},  
{  
text: “Buy”,  
handler: data =\> {  
console.log(“Buy clicked”);  
}  
}  
]  
});  
prompt.present();  
}

---

<div class="post-metadata">

**Author:** ![KishuPro](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@KishuPro](https://forum.ionicframework.com/u/KishuPro)\
**Post date:** [July 17, 2017, 9:20am UTC](https://forum.ionicframework.com/t/how-to-put-two-radio-inputs-in-alert/98424/2 "2017-07-17T09:20:31Z")

</div>

> [@stewchicken](#):
>
> how to add this radio input into the alert?

The same way you’ve done right now? Well, perhaps you’ve just copy pasted code and don’t really understand how it works. In that case, you should try to learn some basics from the docs and tutorials available online.

Just so that you understand whats happening here in your code, you are passing the `create` method options containing an `inputs` array with the required `radio` buttons. You need to add any other `radio` buttons needed to this array, like the following:

```auto
...
inputs: [
   {
      type: 'radio',
      label: 'paypal',
      value: 'paypal'
   },
   {
      type: 'radio', 
      label: 'bank transfer',
      value: 'bank transfer'
   },
   {
      type: 'radio',
      label: 'standard delievery',
      value: 'standard delievery'
   },
   {
      type: 'radio',
      label: 'express delievery',
      value: 'express delievery'
   }
]
...

```

BTW right now your code is not correct, it’s missing commas after the `label` properties.

As also, please always format the code you are posting by selecting the code and clicking on the `</>` button on the tool bar in the editor here.

---

<div class="post-metadata">

**Author:** ![stewchicken](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@stewchicken](https://forum.ionicframework.com/u/stewchicken)\
**Post date:** [July 17, 2017, 9:26am UTC](https://forum.ionicframework.com/t/how-to-put-two-radio-inputs-in-alert/98424/3 "2017-07-17T09:26:45Z")

</div>

Thanks for your reply, it is not what i need  
i need make one choice for payment between paypal and bank transfer  
and another choice for delivery between standard and express .

in short term two choices for two different categories

---

<div class="post-metadata">

**Author:** ![KishuPro](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@KishuPro](https://forum.ionicframework.com/u/KishuPro)\
**Post date:** [July 17, 2017, 9:29am UTC](https://forum.ionicframework.com/t/how-to-put-two-radio-inputs-in-alert/98424/4 "2017-07-17T09:29:52Z")

</div>

If you need a very customised interface, then you should look into custom modals perhaps.
