Help

Re: How to check if attachement field is empty or not

Solved
Jump to Solution
4958 0
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
LEROY_Frederic
4 - Data Explorer
4 - Data Explorer

Hi everybody,

Iโ€™d like to check if an attachement field is empty or not. Someone knows how to do this ?

Tanks a lot.

Fred

1 Solution

Accepted Solutions
Jeremy_Oglesby
14 - Jupiter
14 - Jupiter

Ah, noโ€ฆ sorry, I know what it is โ€” itโ€™s the smart quotes. They got both of us.

Try again - copy-paste this:

IF(Rapport, 'OUI', 'NON')

โ€ฆ I promise you it will work this time

See Solution in Thread

9 Replies 9

Hi @LEROY_Frederic - try this:

IF(Attachments, 'There are attachments for this record', 'No attachments for this record')

Screenshot 2019-08-27 at 15.50.20.png

JB

Hi Jonathan,

Thanks for the answer, butโ€ฆ

Donโ€™t know why, didnโ€™t work with my table :
Rapport is my attachement field
in my test field the formula :
if (Rapport,โ€˜OUIโ€™,โ€˜NONโ€™)

airtable says in red : Sorry, there was a problem saving this field. Invalid formula. Please check your formula text.

an idea about ?

Do you have a space between the word โ€œifโ€ and the opening parenthesis?

Try pasting this formula in:

IF(Rapport, โ€˜OUIโ€™, โ€˜NONโ€™)
LEROY_Frederic
4 - Data Explorer
4 - Data Explorer

Sorry for the late answerโ€ฆ
Same message when pasting.
I have an idea, using airtable APP on Macintosh or Web App

10

Jeremy_Oglesby
14 - Jupiter
14 - Jupiter

Ah, noโ€ฆ sorry, I know what it is โ€” itโ€™s the smart quotes. They got both of us.

Try again - copy-paste this:

IF(Rapport, 'OUI', 'NON')

โ€ฆ I promise you it will work this time

Oh yes!!! Thank you very much!!

Heather_Brown
4 - Data Explorer
4 - Data Explorer

Hi All,

This formula works fine applied to a checkbox field

IF({Print copy sent}=1,โ€œ :green_book: โ€)

but when I try to apply to an attachment field, itโ€™s not working

IF({Attachments}=1,โ€œ :pushpin: โ€)

I tried with and without curly brackets and edited quotes, checked spaces, etc. Any idea what I might be doing wrong?

Thank you!
Heather

Hi @Heather_Brown - โ€œ=1โ€ works OK with a checkbox field but not with an attachment field. For an attachment, you need to do:

IF({Attachments},'๐Ÿ“Œ')

Side note: this also works with a checkbox field, so, something like:

IF({Checkbox}, 'checked', 'not checked')

Screenshot 2021-06-21 at 20.18.40

Heather_Brown
4 - Data Explorer
4 - Data Explorer

Marvelous! Thank you, Jonathan!