It seems to me that what you want to do is easier to achieve using the pre-filled URL. A Submit a form to respondents tells how to get it.
On the other hand, it also seems to me that the source you have used corresponds to a very old version because now the FORMKEY is simply called id
. If I remember correctly, the id was the same for the form in edit mode as in published mode, but not now. Below I give an example of these URLs, I put the IDs in normal format.
Edition
-
https://docs.google.com/forms/d/
1t-J3rvQDnsV6avLe-mn6Zf3QALmVp8iHnKz-UYH3Fow /edit
Published
-
https://docs.google.com/forms/d/e/
1FAIpQLScwZm_emVRyey8N9gzD_fj-OEs5hhOrRnVM7it1KUowWPk_4A /viewform
If you continue with the intention of using the id, you may find it convenient to obtain it through Google Apps Script with the method getId .