# Radio buttons, default selection

**URL:** <https://pdfjs.community/t/radio-buttons-default-selection/69>\
**Category:** Technical Support\
**Created:** [June 18, 2020, 2:41am UTC](https://pdfjs.community/t/radio-buttons-default-selection/69 "2020-06-18T02:41:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwithers](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@jwithers](https://pdfjs.community/u/jwithers)\
**Post date:** [June 18, 2020, 2:41am UTC](https://pdfjs.community/t/radio-buttons-default-selection/69/1 "2020-06-18T02:41:24Z")

</div>

We use pdfjs for rendering the PDF documents on an html page, and it seems that when we have a pdf document with embedded radio buttons the pdfjs library renders the radio buttons with one of them selected by default. We need a way for them to not have any selection by default.

Any help is appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [June 22, 2020, 9:25pm UTC](https://pdfjs.community/t/radio-buttons-default-selection/69/2 "2020-06-22T21:25:36Z")

</div>

Hey!

Sorry for the late response.

Would you be able to send us the document in question? This would help us test and find a solution a bit better. A public Dropbox or GDrive link would be great.

Thank you!  
Logan

---

<div class="post-metadata">

**Author:** ![jwithers](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@jwithers](https://pdfjs.community/u/jwithers)\
**Post date:** [June 23, 2020, 2:58pm UTC](https://pdfjs.community/t/radio-buttons-default-selection/69/3 "2020-06-23T14:58:14Z")

</div>

Hello Logan, here’s a sample file. When this loads Option2 is selected by default.

[https://esoftwaresol-my.sharepoint.com/:b:/g/personal/jwithers\_vergentlms\_com/ETsFFw3M4vZPreJ4J2DBSnEBUArwft4AZCiVIQciaBQ7\_Q?e=d8JIWV](https://esoftwaresol-my.sharepoint.com/:b:/g/personal/jwithers_vergentlms_com/ETsFFw3M4vZPreJ4J2DBSnEBUArwft4AZCiVIQciaBQ7_Q?e=d8JIWV)

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [June 24, 2020, 3:05pm UTC](https://pdfjs.community/t/radio-buttons-default-selection/69/4 "2020-06-24T15:05:46Z")

</div>

Thank you for the document. I can reproduce your error and this is not expected behaviour. We will look into it and get back to you ASAP with a solution.

Most likely we will make a new patch release with a fix for this bug.

Thanks!  
Logan

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [June 26, 2020, 6:08pm UTC](https://pdfjs.community/t/radio-buttons-default-selection/69/5 "2020-06-26T18:08:19Z")

</div>

Hey @jwithers

Just letting you know that we found the issue and it will be resolved in the next patch. This should happen early next week and we’ll let you know when it’s ready.

Thanks!

---

<div class="post-metadata">

**Author:** ![jwithers](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@jwithers](https://pdfjs.community/u/jwithers)\
**Post date:** [June 26, 2020, 9:46pm UTC](https://pdfjs.community/t/radio-buttons-default-selection/69/6 "2020-06-26T21:46:43Z")

</div>

Thanks for the quick response!

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [June 29, 2020, 5:16pm UTC](https://pdfjs.community/t/radio-buttons-default-selection/69/7 "2020-06-29T17:16:40Z")

</div>

Hey!

PDF.js Express 6.3.4 has been released and should fix the bug you were seeing with the radio buttons.

> **[@pdftron/pdfjs-express](https://www.npmjs.com/package/@pdftron/pdfjs-express)**
>
> \[PDFJS Express\](https://pdfjs.express) is a powerful JavaScript-based PDF Library that wraps \[PDF.js\](https://mozilla.github.io/pdf.js/). It provides a slick out-of-the-box responsive UI that interacts with the core library to view, annotate and...

Thanks!

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [June 29, 2020, 5:16pm UTC](https://pdfjs.community/t/radio-buttons-default-selection/69/8 "2020-06-29T17:16:46Z")

</div>


