Jun 13th, 2012, 9:08 AM
(This post was last modified: Jun 13th, 2012, 9:09 AM by Question Guy.)
I am using the External Form API and wanting to use the "Submission Accounts" module.
Right now I have separate fields for First Name and Last Name.
I want the Contest Form to be OPEN/PUBLIC for the First Submission -- the Contest allows 3 separate Guesses as to a final number by a certain date of the online visits counter.
The other two guesses can be submitted one at a time or in two more visits before the contest submission closing date.
So, the open form should be filled in the First time with
------------
First Name,
Last Name,
email,
telephone (for verification of location)
and
Guess 1 (to be required)
Guess 2 (open to submission but not required now)
Guess 3 (open to submission but not required now)
Password (required)
Submit Button
-----
I was hoping to use the Submission Accounts module to take the first Submission and turn it into a "Login to Your Account" function.
But when I look at the Module it only provides Email Field, Username field and Password field.
What I want to do is to concat fields "firstname" and "lastname" to fill in the value of the Username Field.
I GUESS I could create a new Username field with a Concat of "firstname" and "lastname" in the form itself so that the Username field is written with the combination of these two fields.
But now I want to run a verification check :
If the Public form is filled in again with the same telephone number or the same email address the form will not Submit.
It will give the message that the Email or the Telephone number match a previous entry and that this submission cannot be Saved.
And the message will then say that if they have already "Registered" then the Reply email will contain their Username and Password to Complete their 2nd and 3rd entries by Logging In.
When a Contest Registrant does Log In I want them to see just one or two Guess fields available.
For each Guess field that is already filled in I want just a Read-Only value. The field cannot be edited.
I guess this can be done with a conditional Echo ...
SO, besides Form Validation rules, in the Public form on Submit I want to check the database for any entries whose telephone or email fields match the Posted values.
I know Ajax can do this on-the-fly and return Warnings
before Submission.
But I assume I will have to rely on PHP Server Side to catch existing Registrants from the database.
Is this best done with the Hooks module or directly by altering the Submission Accounts module?
Thank you!
Right now I have separate fields for First Name and Last Name.
I want the Contest Form to be OPEN/PUBLIC for the First Submission -- the Contest allows 3 separate Guesses as to a final number by a certain date of the online visits counter.
The other two guesses can be submitted one at a time or in two more visits before the contest submission closing date.
So, the open form should be filled in the First time with
------------
First Name,
Last Name,
email,
telephone (for verification of location)
and
Guess 1 (to be required)
Guess 2 (open to submission but not required now)
Guess 3 (open to submission but not required now)
Password (required)
Submit Button
-----
I was hoping to use the Submission Accounts module to take the first Submission and turn it into a "Login to Your Account" function.
But when I look at the Module it only provides Email Field, Username field and Password field.
What I want to do is to concat fields "firstname" and "lastname" to fill in the value of the Username Field.
I GUESS I could create a new Username field with a Concat of "firstname" and "lastname" in the form itself so that the Username field is written with the combination of these two fields.
But now I want to run a verification check :
If the Public form is filled in again with the same telephone number or the same email address the form will not Submit.
It will give the message that the Email or the Telephone number match a previous entry and that this submission cannot be Saved.
And the message will then say that if they have already "Registered" then the Reply email will contain their Username and Password to Complete their 2nd and 3rd entries by Logging In.
When a Contest Registrant does Log In I want them to see just one or two Guess fields available.
For each Guess field that is already filled in I want just a Read-Only value. The field cannot be edited.
I guess this can be done with a conditional Echo ...
SO, besides Form Validation rules, in the Public form on Submit I want to check the database for any entries whose telephone or email fields match the Posted values.
I know Ajax can do this on-the-fly and return Warnings
before Submission.
But I assume I will have to rely on PHP Server Side to catch existing Registrants from the database.
Is this best done with the Hooks module or directly by altering the Submission Accounts module?
Thank you!