I want to store the form data in the database using the SaveToDatabaseFinisher. The data should be assigned to the page, where the form Plugin is placed on and I don't know how to find the pid of the current page. In every example I found, the pid was always hard coded in the yaml file.
I tried {pid} and {__pid} without any success. So how to get the current page's id (pid) to store it in the database (in TYPO3 8.7)? Or is it only possible in a later T3 release?
...
databaseColumnMappings:
pid:
value: '{__pid}'
tstamp:
value: '{__currentTimestamp}'
elements:
...
Since runtime references are currently not extensible besides form values you need to add a custom finisher which determines the current page ID and stores it as finisher variable. Then you can access this variable in the
SaveToDatabasefinisher configuration.