1 Reply Latest reply on Sep 26, 2010 1:49 PM by sunmoonstar.13

    Get File Name as Text

    Mitch

      Title

      Get File Name as Text

      Post

      Hi,

      I would like to establish a field (FileName) and associated script with dialog box.  My intention is for the script to request the user to insert a file from their computer - as a reference, then the script, or another will enter the file name and its path as text into the Filename field...?

      Anyone have any idea where to start?

        • 1. Re: Get File Name as Text
          sunmoonstar.13

          Script:

          Show Custom Dialog  //  you can specifiy what you want the dialog box to say
          Insert File [ Reference ; your_container_field ]

           

          Then create an unstored Calculation field ("FileName") with the following calculation:

           

          GetValue ( GetAsText ( your_container_field ) ; 2 )

           

          Nick