How do I upload users with the custom user profile field?? Is there any syntax to be followed. I tried profile_field_****** where ****** is custom field name. But this doesnot work.
I just upgraded our server to 1.9 from 1.8 and it seems like I'm still having the problem in uploading users with custom profile files. It still gives me the message that the custom field name is not a valid field. Any help would be great. Thanks a lot.
Okay, it's working now. I didn't know I have to put the prefix "profile_field_" for the custom field names. But, it only works with Text Inputs. It didn't work with menu of choices. Any help would be great. Thanks.
Actually I figured out something else. It does not work with any of the fields which has choices including the default ones in Moodle. e.g. maildisplay.
Yes, I will report this in the tracker with the steps to reproduce and let you know the number.
I have also been dealing with this. Knowing how the dropdown list field works in HTML I experimented and realized that when importing to a custom profile field which was created as a menu of choices, you CANNOT import the VALUES of the choices, but instead the index number of the choice.
So in my case we created a profile_field_gender with 3 choices M, F, and - (for us the hyphen means, 'prefer not to reveal').
So, in the .csv import file under the heading for that field, you must enter a 0 to select the first option (M), a 1 for the second option (F) or a 2 for the third option (-).
Said another way, when building your .csv file, you will need to know that:
0 = "M"
1 = "F"
2 = "-"
I searched the Moodle docs and could not find any reference to this so maybe it can be added to the issue tracker (still haven't spent time learning to use the tracker myself - I really need to do that)!