• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Java-script in Stamp

Community Beginner ,
Oct 04, 2024 Oct 04, 2024

Copy link to clipboard

Copied

I need a java-script to print the current Document-Name

I trried event.value = this.path.slice(i, this.path.length - 4);

but it do not work.

Views

305

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Beginner ,
Oct 05, 2024 Oct 05, 2024

Copy link to clipboard

Copied

Your solution doesn't help!
This will output the document number of the stamp. But I would like to have the document number of the document to be stamped!

View solution in original post

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 04, 2024 Oct 04, 2024

Copy link to clipboard

Copied

event.value = this.documentFileName;

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 05, 2024 Oct 05, 2024

Copy link to clipboard

Copied

Your solution doesn't help!
This will output the document number of the stamp. But I would like to have the document number of the document to be stamped!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 05, 2024 Oct 05, 2024

Copy link to clipboard

Copied

Use this:

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

 

In the future, try being a bit more polite when asking for help... I didn't notice this was supposed to be in a stamp (although you did mention it in the title). These things happen.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 05, 2024 Oct 05, 2024

Copy link to clipboard

Copied

LATEST

Sorry

This is my first time in this forum and I'm surprised at how quickly I received a competent answer.

I promise to express myself more precisely in the future.

Thank you for your help

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines