Skip to main content
Solved

IF Statement based on a file being attached

  • Apr 10, 2024 3:35 PM UTC
  • 0 replies
  • 622 views

Forum|alt.badge.img+8

Greeting - I want to do an IF Statement to tell me if a file has been attached to the record or not. it does not seem to be working when i say Attachment=True. 

how could should I format my text formula field to tell me an attachment is present?

If([Attachment]="true","Yes","No")

Best answer by ChayceDuncan

ToText([Attachment])!="" will check if the file is present or not. 

The only catch is that it will not be picked up until after the record is saved since the file is actually committed to the DB until that. 

View original
This topic has been closed for replies.

Forum|alt.badge.img+9
  • Qrew Colonel
  • Answer
  • Apr 10, 2024 3:43 PM UTC

ToText([Attachment])!="" will check if the file is present or not. 

The only catch is that it will not be picked up until after the record is saved since the file is actually committed to the DB until that. 


Forum|alt.badge.img+8
  • Author
  • Qrew Member
  • Apr 10, 2024 3:48 PM UTC

Thank you! I figured it out a similar way by changing the formula to a checkbox instead of text. "If([Attachment]="",false,true)"