Hello anilreddy0102,
Try adding this code to your bp-custom.php file:
add_filter ('bps_xprofile_format', 'change_format', 10, 2);
function change_format ($default, $field_id)
{
if ($field_id == 143) return 'decimal';
return $default;
}
Replace 143 with the actual field ID of your field.
Thanks. But it’s outputting 2 text boxes. Instead, I want to output dropdown to select the range. Pls help.
Hello anilreddy0102,
The answer depends on the form template you are using. Please see the full info in your dashboard, under Users -> Profile Search, or take a screenshot of that page.
This is the form template I’m using..
members/bps-form-legacy
located in: themes/sweetdate/buddypress/
That template is provided by your theme, and I’m not sure if it’s able to display the range as two dropdowns. You could ask the SweetDate team about that.
If you go to your Edit Form page, which other choices are present in the Form Template dropdown?