CF6 - database - add record for ip address

How to add a record for user IP address in a ChronoForms database table.

Overview

The issue occurs when a form needs to store the user's IP address, but the database table lacks a dedicated field for it.
First, add a new enabled field named 'ip_address' to your table in the CF data tables. Then, in your form's Save Data event, use the insert data override to map the IP address to this new field.

Answered
ChronoForms v6
je jetroh 10 May, 2017
How to add a record into database for ip address of users?
Thanks
Max_admin Max_admin 11 May, 2017
Answer
1 Likes
Hi jetroh,

In the forms manager, click the table name under the "data tables" to open the table, click "Edit table", add a new field called "ip_address" and make sure its enabled" then save the table and go in your form under the "Events" section, find the "save data" function and add this to the "insert data override" box:
ip_address:{ip:}

You better have the latest update before trying this procedure.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.