Add new field to registration form

Hi @acahya

I had the same problem. There are 3 things to “edit”:

1 - Create the code in the registration form. [you already did]
2 - Add the string ‘phone’ (file: lib/pkp/classes/users/form/RegistrationForm.inc.php) in the array at the line 130(more os less)
3 - With the same file. Add $user->setPhone($this->getData(‘phone’)); Just after the $user = $userDao->newDataObject(); At line 170 (more os less)

Hope it helps!