Prevent save a record - New forms
Hi, I was wondering if anyone can figure out how to avoid saving a record with duplicate attachments.
The scenario is as follows: I have created a new version form and added three fields attach type. These are mandatory.
In legacy forms, this works partially because as I only validate that the name is not identical between the attach type fields. But quickbase has no validation at the level of the attachment field content level.
Thinking outside of the box I have implemented the following dynamic formula to avoid saving, when these attachments are duplicates. But when I implement this dynamic rule in the new version of the form. it doesn't work.
Try making this as a formula text field and then just use the field in the Custom Data Rules box.
IF(
[Evidence] =[Customer invoice] and [Evidence]<>""
or
[Evidence] =[Purchase order attach] and [Evidence]<>""
or
[Customer invoice] = [Purchase order attach] and [Customer invoice] <>"",
"Duplicate files not allowed.")