Skip to content

Additional information for actions #76

Closed Answered by tobimori
rkaldung asked this question in General
Discussion options

You must be logged in to vote

You can configure DreamForm to collect the IP address with the following option

// site/config/config.php

return [
  'tobimori.dreamform' => [
    'metadata' => [
        'collect' => [
            'ip', 
			// [...]
        ]
    ],
  ],
];

and then access the IP like so:

$submission->metadata()->ip()

or in the Email action, you should be able to use

{{ submission.metadata.ip }}

For other actions, like the Mailchimp action, the IP address is automatically included when the metadata collect option is enabled.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tobimori
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants