# Button Formula Error - Open PDF button

**URL:** <https://connect.superhuman.com/t/button-formula-error-open-pdf-button/47547>\
**Category:** Ask the Community\
**Created:** [March 26, 2024, 5:40am UTC](https://connect.superhuman.com/t/button-formula-error-open-pdf-button/47547 "2024-03-26T05:40:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grayson\_Goodacre](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/grayson_goodacre/32/41530_2.png) [@Grayson\_Goodacre](https://connect.superhuman.com/u/Grayson_Goodacre)\
**Post date:** [March 26, 2024, 5:40am UTC](https://connect.superhuman.com/t/button-formula-error-open-pdf-button/47547/1 "2024-03-26T05:40:04Z")

</div>

Hi guys, I’m new to coda

I am organising a reading list table with PDF files in them and I would like to make a button that Opens the file.

Below is the code I wrote, but it keeps showing “Unexpected value” error.

```auto
thisRow.FileSwitchIf(pdf.IsNotBlank(),"open PDF", )

```

Can anyone tell me what I am doing wrong and if they know the correct code to be able to open the PDF.

 ![my screenshot 7](https://global.discourse-cdn.com/coda1/original/3X/d/e/de2c15beae809e7598239527f5c170a08169df62.png)

---

<div class="post-metadata">

**Author:** ![Jannis](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/jannis/32/34283_2.png) [@Jannis](https://connect.superhuman.com/u/Jannis)\
**Post date:** [March 26, 2024, 7:56am UTC](https://connect.superhuman.com/t/button-formula-error-open-pdf-button/47547/2 "2024-03-26T07:56:56Z")

</div>

Hi @Grayson_Goodacre and welcome to the Coda Community.

I did a little research and found this topic where this problem has already been solved.

> [@Button to open pdf file?](https://connect.superhuman.com/t/button-to-open-pdf-file/44149):
>
> hello. I have a file column with i attach a pdf file then i have another column with parsejson pdfURL to display it to another canvas column. However sometimes the display is not working. So i was thinking to have button column to open PDF file like in the first photo (when i click the file directly, it will display pdf, but i want to use button instead of clicking at the file) is there any way to do this? or any formula for the button

Please take a look and let me know if it fits your use case.

* * *

Sincerely  
Jannis

---

<div class="post-metadata">

**Author:** ![system](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/system/32/24484_2.png) [@system](https://connect.superhuman.com/u/system)\
**Post date:** [June 24, 2024, 7:57am UTC](https://connect.superhuman.com/t/button-formula-error-open-pdf-button/47547/3 "2024-06-24T07:57:27Z")

</div>

Closed on June 24, 2024, 7:57am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
