Incremental
Member
Hello,
I'm developping an event registration application and I would like to get and update User IP.
I want to avoid IP modification if the administrator is modifying the record.
In my Form I set a PHP plugin (onBeforeStore) modifying the Form IP adress without effect. The Form IP is stored.
I also tried with 'inscriptions___IP_Address' without success.
If I insert
the IP shows 1.1.1.1 but he table stores the first IP.
What could be wrong ? Thanks
I'm developping an event registration application and I would like to get and update User IP.
I want to avoid IP modification if the administrator is modifying the record.
In my Form I set a PHP plugin (onBeforeStore) modifying the Form IP adress without effect. The Form IP is stored.
PHP:
$formModel->updateFormData('inscriptions___IP_Address_raw', '1.1.1.1', true);
If I insert
PHP:
echo "<pre>";print_r($formModel->formData);exit;
What could be wrong ? Thanks