# Getting a text box by selecting an option in radio button.

**URL:** <https://forums.pega.com/t/getting-a-text-box-by-selecting-an-option-in-radio-button/644>\
**Category:** General\
**Tags:** pega-academy\
**Created:** [September 27, 2020, 2:16pm UTC](https://forums.pega.com/t/getting-a-text-box-by-selecting-an-option-in-radio-button/644 "2020-09-27T14:16:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnanyaA2](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/ananyaa2/32/8735_2.png) [@AnanyaA2](https://forums.pega.com/u/AnanyaA2)\
**Post date:** [September 27, 2020, 2:16pm UTC](https://forums.pega.com/t/getting-a-text-box-by-selecting-an-option-in-radio-button/644/1 "2020-09-27T14:16:19Z")

</div>

Hi ,

Requirement : I have created a property which is Radio button . There are two options to choose : one is ‘Aadhar no.’ and another is ‘Patient ID’ . Now , the requirement is when I select Aadhar No. , a text box should suddenly be visible below (to enter data) . And similarly if I choose ‘Patient Id’ , a text box should be visible .

So i simply want a text box to be visible below whenever I choose either options in the radio button . Thats It.

Kindly suggest me a way to accomplish that with proper steps.

Thanks in Advance.

---

<div class="post-metadata">

**Author:** ![pavank](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@pavank](https://forums.pega.com/u/pavank)\
**Post date:** [September 27, 2020, 6:17pm UTC](https://forums.pega.com/t/getting-a-text-box-by-selecting-an-option-in-radio-button/644/2 "2020-09-27T18:17:20Z")

</div>

Use visibility as Condition(expression) for both the text inputs and mention the condition and select Run Visibility condition on client.

Please find the below screenshot for more details.

 ![radio button visibility.png](https://pega1.discourse-cdn.com/pega/original/2X/5/542573a6f4daf0c2437db30a4f5c017c4b14dfab.png)

---

<div class="post-metadata">

**Author:** ![AnanyaA2](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/ananyaa2/32/8735_2.png) [@AnanyaA2](https://forums.pega.com/u/AnanyaA2)\
**Post date:** [September 27, 2020, 7:37pm UTC](https://forums.pega.com/t/getting-a-text-box-by-selecting-an-option-in-radio-button/644/3 "2020-09-27T19:37:43Z")

</div>

Thank you so much kanap2 for ur help . It worked .
