Skip to main content
Participating Frequently
July 8, 2021
Question

Create dynamic stamp - set author in stamp JS

  • July 8, 2021
  • 1 reply
  • 661 views

Hi
after I add dynamic stamp (below code) I would like to be able set "author" in "comments" via JS (in below code like I put event.value I would like to do the same with author but it's not working or I cannot find method/properties")

  • how to set author using js? (I would like to add new line after event.value)
  • how to find methods / other properties in JS debuger for STAMP? - where they are?

 

 

 

thank you!

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
July 8, 2021

You can't do that. At the moment the script executes the comment doesn't exist yet.

Dawid5CE9Author
Participating Frequently
July 8, 2021

it seems that comments author take "log-in" so if I would be able put in JS code to change "log-in" to some name then adobe could name my stamps in comments how I want but how to do it...

try67
Community Expert
Community Expert
July 8, 2021

You can't do that, either. It's a read-only property.

However, the author name doesn't have to be the log-in name. This is a setting you can turn on or off via Preferences - Commenting. If you turn it off then you can apply a different author name as the default, but none of that can be scripted.