Best practice forum (Archived)

custom fields

 
Ronen Deift
custom fields
by Ronen Deift - Monday, 14 January 2013, 2:04 AM
 

Hi,

How is it possible to add an additional custom filed type?

By default there are; Checkboxes, Date Time, Menu of Choices, Text Area and Text Input, but I want to add an additional type a Multi Choice or Multiple attribute field.

Any help will be *greatly* appreciated.     big grin 

Thanks,

Craig Eves
Re: custom fields
by Craig Eves (Totara Support) - Monday, 14 January 2013, 4:45 PM
Group Totara

One idea that doesn't require creation of a new field type is to use multiple check boxes with each option as the field name.

This would allow the user to easily select more than one option and could be used to filter on (although a bit less flexible)

Craig

Simon Coggins
Re: custom fields
by Simon Coggins - Monday, 14 January 2013, 7:40 PM
Group Totara

A developer would need to write a new class for the new type of custom field.

For user profiles fields the current ones are in /user/profile/field/ or for totara hierarchy fields they are in /totara/customfield/field/.

There are a number of functions that need to be defined but it would be fairly straightforward for a developer to do it.

Simon