1 Reply Latest reply on Apr 7, 2016 8:35 AM by TSGal

    Email layout as pdf from Go 14




      I would like to email a pdf of the current layout displayed in FM GO 14, to an email address contained in the record.


      How do I properly set up a script to do this?


      Thank you,



        • 1. Re: Email layout as pdf from Go 14



          Thank you for your post.


          One sample script could be:


             Set Variable [ $filepath ; Value: "file:" & Get ( DocumentsPath ) & "test.pdf"

            Save Records as PDF [ Restore ; No dialog ; "$filepath" ; Current record ]

            Send Mail [ Send via E-mail client ; No dialog ; To: <email address field> ; attachment = "$filepath" ]




          In essence, we first set up a variable that will capture the filename and file path.  For this example, "test.pdf" is the example file.  You can name this anything you want, or include the file name in a field.  Then, export the layout with the current record to test.pdf.  Finally, send a mail to the email address contained in a field, and attach "test.pdf".


          Let me know if you need additional clarification.



          FileMaker, Inc.