โAug 27, 2019 07:35 AM
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
Solved! Go to Solution.
โAug 27, 2019 11:35 PM
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
โAug 27, 2019 07:51 AM
Hi @LEROY_Frederic - try this:
IF(Attachments, 'There are attachments for this record', 'No attachments for this record')
JB
โAug 27, 2019 08:27 AM
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 ?
โAug 27, 2019 11:39 AM
Do you have a space between the word โifโ and the opening parenthesis?
Try pasting this formula in:
IF(Rapport, โOUIโ, โNONโ)
โAug 27, 2019 11:05 PM
Sorry for the late answerโฆ
Same message when pasting.
I have an idea, using airtable APP on Macintosh or Web App
โAug 27, 2019 11:35 PM
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
โAug 28, 2019 12:54 AM
Oh yes!!! Thank you very much!!
โJun 21, 2021 07:16 AM
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
โJun 21, 2021 12:21 PM
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')
โJun 22, 2021 09:48 AM
Marvelous! Thank you, Jonathan!