Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Juggernaut

Adding text link and removing file that was inserted

Featured Replies

  • Newbies

Hi all. I'm new in here. I'm running FM Pro 8.5. I was hoping if you guys could assist me. How do I insert a text link (the full location of the file) rather than have it displayed just as a filename in the container? Can it be done in a Text Field? The 'Insert File' script does not do the job.

Another question, when you have Inserted a File, How do I remove the inserted file only without having to delete the entire record?

You can get the full path of a file that is stored as a reference in the container field. Those that has been actually stored in the field do not have a path because it is embedded.

Use a GetAsText(YourContainer) to get the filename if stored, or return both filename and full path if referenced only.

To delete the file, just go to the container field and then press delete or use a "clear" step.

  • Author
  • Newbies

Thanks mr_vodka. It's a bit unclear. Where do I use the GetAsText command. Do I run the script in the Container Field or in the Insert File Field. I created an Insert File command which when I click, will place the file (whether its embedded or referenced) into a Container field. Instead of just the filename, I'm hoping to get the full path displayed. But I'm not sure where to place the GetAsText command to display the full path. Hope you can help. Thanks

  • Author
  • Newbies

Fantastic. It did the job! The file name gets displayed as

file:XX

filewin:XX

Is there a way that I can make it to display just the filewin:XX as I've got a separate field that gives the name of the file. Thanks.

RightValues ( GetAsText ( YourContainer ) ; 1 )

  • Author
  • Newbies

Thanks Mr_Vodka. You've been a big help. If I have any other problems, would it be ok if I was to just send a private message. At least it won't clog up the forum with newbie questions. Thank you once again.

Faz

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.