I have a joomla registration form that are record to the DB in a custom table. My problem is that even if the form is not completed, each time the submit button is push an incomplete entry is send to the DB.
I like to have those records to be sent to the DB only on fully successfull submit.
I like to have those records to be sent to the DB only on fully successfull submit.
Hi Chacapamac ,
Then you need to add validation. Probably both in the browser and serverside.
Bob
Then you need to add validation. Probably both in the browser and serverside.
Bob
I have already JS Validation On
[attachment=0]validation.jpg[/attachment]
What can I do more?
[attachment=0]validation.jpg[/attachment]
What can I do more?
Hi Chacapamac ,
And you have set it on the form elements validation tabs too?
And the serverside validation?
Bob
And you have set it on the form elements validation tabs too?
And the serverside validation?
Bob
This is my first experience with Chrono and I trying to learn how it work...
You said —>
1— And you have set it on the form elements validation tabs too?
Note : I add
to the code to be able to separate the form from the template as it show in a lightbox.
I remove this code and turn it back to Wizard to revisit my elements.
[attachment=1]formelements.jpg[/attachment]
Note: this is a Joomla registration
Custom Element = an Image
Note: I’m a litle confuse here if I should put the elements that belong to the registration itself (Name, Username, email, password) required or not?
Votre Nom (Name) = Validation Required
Choisir un nom d’usager (Username) = Validation Required
Adresse courriel (Email) = Validation Required + Email
Entrer un mot de passe (Password) = Validation Required
Vérifier le mot de passe (Repeat Password) = Validation Required
Sélectionnez votre groupe (Custom Field) = Validation Required
Nom de votre organisation (Custom Field) = No validation
This is my events:
[attachment=0]Event.jpg[/attachment]
2— I don’t understand what to do for the “Server Side Validation”????
You said —>
1— And you have set it on the form elements validation tabs too?
2— And the serverside validation?
1— And you have set it on the form elements validation tabs too?
Note : I add
<?php
$uri =& JFactory::getURI();
if ( $uri->getVar('tmpl') != 'component' ) {
$uri->setVar('tmpl', 'component');
$mainframe->redirect($uri->toString());
}
?>
to the code to be able to separate the form from the template as it show in a lightbox.
I remove this code and turn it back to Wizard to revisit my elements.
[attachment=1]formelements.jpg[/attachment]
Note: this is a Joomla registration
Custom Element = an Image
Note: I’m a litle confuse here if I should put the elements that belong to the registration itself (Name, Username, email, password) required or not?
Votre Nom (Name) = Validation Required
Choisir un nom d’usager (Username) = Validation Required
Adresse courriel (Email) = Validation Required + Email
Entrer un mot de passe (Password) = Validation Required
Vérifier le mot de passe (Repeat Password) = Validation Required
Sélectionnez votre groupe (Custom Field) = Validation Required
Nom de votre organisation (Custom Field) = No validation
This is my events:
[attachment=0]Event.jpg[/attachment]
2— I don’t understand what to do for the “Server Side Validation”????
OK SOLVED !
The problem was the order of my events.
I move the Send to DB action under the Registration
No more partial entries in the DB. If the Submit button is pushed and the form not validate nothing is send to db...
FOR THE FOLLOWING I CAN OPEN A NEW POST IF YOU WANT?
I’m still puzzled by your comments:
My question remain —>
Should I put the elements that belong to the registration itself (Name, Username, email, password) required or not?
My confusion come from the fact that Joomla registration minimum fields are always required and I don’t want to have some kind of double validation???
My other question will be —> I need to understand how to validate forms and when and what to use (Chrono Elements validation and what you mean and how to use Server side validation.
Thanks ! 😀
The problem was the order of my events.
I move the Send to DB action under the Registration
No more partial entries in the DB. If the Submit button is pushed and the form not validate nothing is send to db...
FOR THE FOLLOWING I CAN OPEN A NEW POST IF YOU WANT?
I’m still puzzled by your comments:
And you have set it on the form elements validation tabs too?
And the serverside validation?
My question remain —>
Should I put the elements that belong to the registration itself (Name, Username, email, password) required or not?
My confusion come from the fact that Joomla registration minimum fields are always required and I don’t want to have some kind of double validation???
My other question will be —> I need to understand how to validate forms and when and what to use (Chrono Elements validation and what you mean and how to use Server side validation.
Thanks ! 😀
Hi Chacapamac,
Click the spanner icon on the elements in the Preview window and you will see the Configuration dialogue. Click the Validation tab and check the boxes for the validations you need.
Yes, Joomla! will check the field required for the registration but only after the form is submitted. It will give a better user experience if you validate these inputs before the form is submitted.
Bob
Click the spanner icon on the elements in the Preview window and you will see the Configuration dialogue. Click the Validation tab and check the boxes for the validations you need.
Yes, Joomla! will check the field required for the registration but only after the form is submitted. It will give a better user experience if you validate these inputs before the form is submitted.
Bob
Thanks Understood. Solved
This topic is locked and no more replies can be posted.