Change Initial form

Hi.

How can I change the initial form where the registration code is entered? I want it to be a drop-down list with the 50 states. I have the code to put in, just can't seem to find where to put it.

Thanks!

Elissa

Comments

RE: Change Initial form

The register.php file has all the logic relating to the account creation pages. You would have to add the code there.

Incidentally, you can bypass the initial screen where you enter the code if you put ?code=xyz in the URL. So you may prefer to make a custom entry point (ie: change the "register now" link on your login block to go somewhere else and then that intermediate page sends users to register.php?code=NY etc...)

--Julian

RE: Change Initial form

Hi,

I know nothing about php and html but I downloaded the registration module. I have only 2 groups (students and parents) and what I want is instead of having a random code to put in the form I want people entering either student or parent in the registration form (with of course the dispatch in the group permission).
Can you help me on that?

RE: Change Initial form

Hi there, thanks for your interest in reg codes.

First, especially if you're not handy with PHP and HTML, I strongly recommend you read the readme files for Reg Codes and Formulize very carefully.

Second, when you create codes, you have the option of typing in a specific value for the code at the top of the screen. If you leave that box blank, a random code will be generated. But in your case, I think you'd obviously want to type in "student" for one and "parent" for the other.

Then, once those are created, users can type in "student" or "parent" as their registration code and they will be shown the form.

Note that you can use these type of URLs to go directly to the form using the appropriate code:

http://www.mysite.com/register.php?code=student
http://www.mysite.com/register.php?code=parent

In Formulize, when you create your custom form, you can make certain questions appear to only students or parents by selecting the appropriate group in the "Display" option for each question. Note that the display option is meant only for these kinds of situations, where different people should see different questions in the same form. You still have to set permissions on the form as a whole using the "Modify Form Access Permissions" part of the administration area of Formulize.

Good luck, I hope this helps,

--Julian

RE: Change Initial form

ok Thanks for your help but I have another problem, the filed where I should put my codes (student and parents) doesn't appear on my page. I only have the groups, the dates, the number of users and the button create code and nothing else. Do you why?

RE: Change Initial form

ok Thanks for your help but I have another problem, the filed where I should put my codes (student and parents) doesn't appear on my page. I only have the groups, the dates, the number of users and the button create code and nothing else. Do you why?

RE: Change Initial form

If you're using 2.1 RC1, then there should be a box at the top where you can type in the form. If you're using a previous version, then there would be no box.

If you are using 2.1 RC1 and you get no box, then perhaps that's because you did not update the module (in System Admin->Modules) after upgrading from a previous version? (The template changed, so an update is necessary -- the update button is one of the ones beside the module name on the System Admin->Modules page).

Does that help?

--Julian