HI , I just installed the latest chronoform version rc3.11 and follow the tutorial to create a registration form .
When I tested the form nothing get save into the database and no new user created . I try to add debugger to the event on submit and nothing get displayed !
http://chronoengine.com/downloads/chronoforms/chronoforms-tutorials/v4-tutorials/161-cfv4basicform/download.html
here is my question , does the above tutorial really work on rc3.11 ? It shows by adding the "joomla registration" action to the events on submit and fill the correct field names and that's all the form is done ! why there's no need to enter some database name and password to write to the database ?
When I tested the form nothing get save into the database and no new user created . I try to add debugger to the event on submit and nothing get displayed !
http://chronoengine.com/downloads/chronoforms/chronoforms-tutorials/v4-tutorials/161-cfv4basicform/download.html
here is my question , does the above tutorial really work on rc3.11 ? It shows by adding the "joomla registration" action to the events on submit and fill the correct field names and that's all the form is done ! why there's no need to enter some database name and password to write to the database ?
My guess is that the names of your fields and the names you've provided in your joomla registration event don't match up. I just tried messing up one of my fields and I think I'm seeing what you're seeing. Because these fields are required by Joomla, the insert wont happen if the value is NULL (Which will be the case if it's looking for a field called 'Username' and your field is actually named 'username' ).
You might like to also add validation to each of the fields set-up, so that they are all required, the username and name fields are alphanumeric and email is validated as 'email'. This might sort out data entry issues that could be causing it.
If you're still stuck, I usually start echoing out the fields to try to see the issue. In the OnSuccess event inside the joomla registration event, place a custom, code snippet and add this (changing the bit's inside the ['brackets'] to match your actual field names
You might like to also add validation to each of the fields set-up, so that they are all required, the username and name fields are alphanumeric and email is validated as 'email'. This might sort out data entry issues that could be causing it.
If you're still stuck, I usually start echoing out the fields to try to see the issue. In the OnSuccess event inside the joomla registration event, place a custom, code snippet and add this (changing the bit's inside the ['brackets'] to match your actual field names
<?php
$username = $form->data['username'];
$name = $form->data['name'];
$email = $form->data['email'];
$password = $form->data['password'];
$password_confirm = $form->data['password_confirm'];
echo "Username: " . $username . "<br/>";
echo "Name: " . $name . "<br/>";
echo "Email: " . $email . "<br/>";
echo "Password: " . $password . "<br/>";
echo "Password confirmation: " . $password_confirm . "<br/>";
?>
Hi eddddd,
The tutorial you linked to is for a 'basic form' it doesn't include Joomla! Registration. I assume that you are reading the Joomla! Rgistration tutorial instead.
There is no need to add a database save; the Joomla! Registration action does that for you.
Bob
The tutorial you linked to is for a 'basic form' it doesn't include Joomla! Registration. I assume that you are reading the Joomla! Rgistration tutorial instead.
There is no need to add a database save; the Joomla! Registration action does that for you.
Bob
I deleted the previous created form and start a new one .
and filled in name , id , label with the exact same name joomla and it works ! and even the debugger show up !
is the id most important ? and must match the joomla one ? cos previously i left it with the auto generated default value
and filled in name , id , label with the exact same name joomla and it works ! and even the debugger show up !
is the id most important ? and must match the joomla one ? cos previously i left it with the auto generated default value
This topic is locked and no more replies can be posted.