Skip to main content
Question

Save Before Navigating does not recognize file attachment, work around?

  • October 3, 2023
  • 0 replies
  • 116 views

Forum|alt.badge.img+20

Anyone run into this issue and have a solution?

The class SaveBeforeNavigating will only Auto Save if it detects a change on the record. However, it does not see a file being attached as a change. Thus, if uploading a file is the only change made, it will not save before proceeding.

Indeed, even formula checkboxes looking for a file only recognize it once it is saved. So, any thoughts on how we can get a record to auto save before navigating, if a file upload is the only change? 

In other circumstances if I am launching to a form, I can use some sort of sneaky field update in the background. However, if someone opens a record, and simply adds a file without making any other changes, I am not quite sure how I can force a change.



------------------------------
Mike Tamoush
------------------------------

MarkShnierYou
Forum|alt.badge.img+24

A solution is to have a form rule to "dirty" the record when opened for edit, using a form rule.  I make a numeric field and another field with a formula of that numeric field +1, then a form rule to change the data entry field to the value in the formula field. But it does mean that the record will  get dirtied when no real change ws made, if the user was just "looking" in edit mode..



------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------