Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Inserting Radio Buttons into Login template?

Quote Reply
Inserting Radio Buttons into Login template?
Hello Board,

I have created a new column in the Users table called "user_type". It is a radio button form type.

When a new visitor to my site wants to add a resource I need to identify the type of user in order to direct them the correct add resource form.

My problem I think is straight forward and here is the question. How do I display the radio buttons on the "login" template?

This is what I have tried:

Please select website user type: <%if user_type%> <%user_type%> <%endif%>

Is there some html I am missing? I am also assumming I can insert USER tags into the login template.

Thanks for your help.
Quote Reply
Re: [yobo] Inserting Radio Buttons into Login template? In reply to
This is the html to display radio buttons;

<p>Select your user type:</p>
<input name="user_type" type="radio" value="Option_1" checked>Male<br>
<input name="user_type" type="radio" value="Option_2">Female<br>
<input name="user_type" type="radio" value="Option_3">Goat

However don't you want to collect this information on the original signup_form.html template?

Then in the login.html template you would need to add something like:
<%if user_type eq 'Option_1' %> then go direct to this form type <%endif%> etc etc

Somebody was trying to do this by doing it from the category they submitted their site to;
http://www.gossamer-threads.com/...iew_flat;post=238956

Good luck,

Piers


Quote Reply
Re: [Piers1] Inserting Radio Buttons into Login template? In reply to
Thanks for your help. You are correct. I do want to add this to the sign up form. I was confused about the value options. Of which I have two jobseeker and employer. Each user will then be assigned a different sign up form. Again. Thank you very much!