Skip to main content
tristap41495044
Participant
April 4, 2018
Answered

Dynamic Stamp - text field

  • April 4, 2018
  • 2 replies
  • 1088 views

I am in the process of creating a dynamic stamp with a text field that has a custom calculation script to use the document name.

This is the script that I found and am using:

event.value = event.source.source.documentFileName;

It pulls the document name in fine but it displays it as 1234.pdf, is there a different script or more that I need to add to the current script that would pull in the document name but leave off the .pdf?

This topic has been closed for replies.
Correct answer try67

It's a simple string manipulation:

event.value = event.source.source.documentFileName.replace(".pdf", "");

2 replies

Participant
May 20, 2021

u

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
April 4, 2018

It's a simple string manipulation:

event.value = event.source.source.documentFileName.replace(".pdf", "");

tristap41495044
Participant
April 4, 2018

That worked beautifully!! Thank you for your quick response.