I’m using the form plugin to save email of the visitor. I also want to save the IP address off the visitor. How should I do that? I can use another twig template as a body, but I can’t write PHP directly in the twig…
Hi
I’ve got pretty much the same question. Regarding the IP address I tried adding this under the process heading and the IP shows on the confirmation page just fine
-
ip:
label: User IP Address
-```
however when I try something similar with a field I get the label but no actual IP on the confirmation page or the email. Also I would have thought setting the field to "hidden" would also hide it from the confirmation page
-
name: User IP Address
label: User IP Address
type: hidden
ip:
actually I realised I had my original setup wrong, obviously the ip collection needs to come before the send/save actions (duh) now that I’ve moved it to the first process action this line works perfectly.