Print 2 copies depending on field value

Hi,

Is there a way to print 2 copies of a document, depending if a specific field has a value?

For example, I have a form with a field → Expected Return Date. So, when the document is printed and the Expected Return Date has a value in it, it should print 2 copies of the document automatically when the Print option is taken.

Is this at all possible?

Subject: Print 2 copies depending on field value

Use:

@If(ExpectedReturnDate=“”;@Set(tmpCopies;“1”);@Set(tmpCopies;“2”));

@Command([FilePrint];tmpCopies);

@All

as a View or Form action, or as an Agent with “Target = None”.

Subject: RE: Print 2 copies depending on field value

Thanks a mill!!!