I have enable Profile module and its showing below fields,

* single-line textfield
* multi-line textfield
* checkbox
* list selection
* freeform list
* URL
* date

But how can i add Radio button in user registration form? Is it that Profile module doesn't support Radio button? If not any other alternative?

Comments

rensingh99’s picture

-- Choose a list selection in profile field
-- Put all your options
-- write a module with hook form_alter ()

and finally in that function please write

$form['Personal Information']['profile_ulevel']['#type'] = 'radios';

personal information is category name
profile_ulevel is field name

in my case. Put appropriate category in your case and it would work really.

idealform01’s picture

would you by any chance be able to expand on writing a module with hook form_alter? or have any resources?

thanks

jaypan’s picture

This module will help you: http://drupal.org/project/profile_checkboxes

But you are posting in the wrong section. This section is for module development.

Contact me to contract me for D7 -> D10/11 migrations.