Hi There,
Let's say a user submits a form. I would like to get the record number for that entry so that I can put it in a cookie. Is there an easy way to do this?
Thanks,
Mark
Hi There,
Let's say a user submits a form. I would like to get the record number for that entry so that I can put it in a cookie. Is there an easy way to do this?
Thanks,
Mark
The entry ID is not assigned until after the entry is created. When did you want to set your cookie? As it stands, the entry ID would not be available until after the entry is created and the only hook available would be gform_after_submission.
I was thinking of creating the cookie after the entry was created. I will have a look at the documentation for gform_after_submission.
Thanks,
Mark
Yes, if you want to create the cookie after the form is submitted, then gform_after_submission is the was to do it. You will have all the submitted form values there.
That should do it. Thanks very much!
Let us know how it turns out. Thanks for the update.