SOLVED: How to configure extra fields

Could you please suggets how can a configure a extra field of type ‘Yes/No’ against a user.

I checked this link https://wiki.dolibarr.org/index.php/Extrafields#Load_extrafield_array_in_object but couldn’t get a clear how to step

Thanks

1 Like

Hello

In HOME > SETUP > MODULES > Users & Groups:

Click on the Extra Fields tab:

Attribute Code - must be only characters
Type: Select List
Value:

1,Yes
2,No

Hope that helps.

I couldn’t find the option as you suggested as in above screen shot. Could you please confirm: Whether this extra fields provision comes by default or whether we need to install a module
Thanks

Complementary attributes = Extra fields

I just renamed it in my language files.

Thanks. This is working. In this I couldn’t set a default value. If I try to set as in below screen shot this error ‘BLOB/TEXT column ‘company_admin’ can’t have a default value’ appears. Please help

ref-05112018.png

Why don’t you make it:
1,No
2,Yes

Default value (blank)

Hi, i have done the exact thing as you said above. but how do i use this extrafields field into my custom module?

2 Likes