earlier I gave an answer of the solution. Apparently that answer was removed by Adobe?
By @jan99x
Was this your answer that you marked correct yesterday?

If so, it was not removed by Adobe. Instead it was posted on a different thread:
https://community.adobe.com/t5/photoshop-ecosystem-discussions/user-input-during-action/m-p/14979019#M838723
Jane
@jane-e
Oh yes, help, you're right, I made a mistake, sorry. I'll put the text in the right thread here.
Adobe question if problem is solved...
The original question comes from: how do I process "user input".
I want to change the file name to the equivalent of the layer name + an addition.
Apparently that doesn't work with "Save for Web" >> PNG is saved as HTML!!.
After some testing I decided not to save for web, but as regular PNG, because it works well there.
I don't use REAL user input, but put the desired text in a dummy work layer in advance and create (append) a complete file name with CTRL-C > CTRL-V.
I am satisfied with that solution. The file size hardly differs from save for web and the color difference is nil.
Greetings, Jan