1 Reply Latest reply on May 3, 2012 2:14 PM by TomHays

    Auto insert a file name,


      I would like to be able to click a button and have FM save a file as a pdf

      and name it based on data in a field.


      Any help would be appreciated.



        • 1. Re: Auto insert a file name,

          For the script attached to the button do something like the following


          Set Variable[$theFilePath; Value:"file:" & myTable::myField]

          Save Records as PDF["$theFilePath"; Records being browsed]



          Customize your calculation to assign the variable so that it goes into the folder you desire. The code above will put the file into the same folder as your FileMaker database file.