Forum Discussion
- MarkShnier__YouQrew Legend
I suggest the following.
- Form rule that says when the file attachment is not blank, then make read only file attachment.
- Button called Upload New File Attachment which will display if the File Attachment is not blank. This button will delete the file attachment and and land the user in edit mode.
var text DeleteFile = URLRoot() & "db/" & dbid()
& "?act=API_EditRecord&rid=" & [Record ID#]
&_fid_99=&delfile_fid_99=1;
var text DisplayInEditMode = URLRoot() & "db/" & dbid() & "?a=er&rid=" & [Record ID#];
$DeleteFile
& "&rdr=" & URLEncode(DisplayInEditMode)