|
|
|
Convert Lastname field to dropdown singleselect
|
|
Date: 2007/10/23 05:48
|
By: Varma
|
Status: User
|
|
|
Karma: 0  
|
|
Junior Joomlapolitan  | Posts: 26 |   | |
|
I am buildig site for my community. I want to restrict the lastnames to just to my community lastnames. so I want to convert lastname input type from editbox to single select. Is there any easy way to do this?
I have defined another community builder filed cb_surname and inserted all the fields there. Is there a way that I can populate the values of cb_surname values in below code ( 180-185 lines on cb.core.php) This way I dont have too modify much.
-----------------------------------------------
$return .= "<td class="titleCell">"._UE_YOUR_LNAME.":</td>n";
$return .= "<td class="fieldCell"><input class="inputbox" type="text" size="40" mosReq="1" mosLabel=""._UE_YOUR_LNAME."" id="lastname" name="lastname" value="".htmlspecialchars($user->lastname)."" />"; ------------------------------------------------ Any help is really appriciated.
Thanks Varma
Post edited by: Varma, at: 2007/10/23 07:14
Post edited by: Varma, at: 2007/10/26 07:17
|
|
The administrator has disabled public write access. |
|
|
|
|
Re:Convert Lastname field to dropdown singleselect
|
|
Date: 2008/09/20 16:30
|
By: Varma
|
Status: User
|
|
|
Karma: 0  
|
|
Junior Joomlapolitan  | Posts: 26 |   | |
|
According to the forum posts CB 1.2 is including lastname and firstname also in its field lists now. So with this new version is there a possibility to change the lastname field to dropdown single select list.
Please help
|
|
The administrator has disabled public write access. |
|
|
|
Re:Convert Lastname field to dropdown singleselect
|
|
Date: 2008/09/23 15:11
|
By: beat
|
Status: Admin
|
|
|
Karma: 244  
|
|
Admin  | Posts: 4066 |   | |
|
Varma wrote: According to the forum posts CB 1.2 is including lastname and firstname also in its field lists now. So with this new version is there a possibility to change the lastname field to dropdown single select list.
Please help
Well, theorethically, you could do that, but would have to do it in the database, the UI doesn't allow this particular use. Beat - Developer on Community Builder core Team - If you like CB and this forum, you will love Nick's CB 1.1 reference manual ! : Click here to Get it now  - Would like to help us move faster ? Get it, and/or help us spend more time coding by helping others in this forum, many thanks
|
|
The administrator has disabled public write access. |
|
|