Required User Profile Fields

Topics: Customizing Orchard, General
Jan 16, 2012 at 6:20 PM

Is there a module or some capability to require certain fields on the user profile to be populated?

I am using the profile module and have added FirstName, LastName, etc to the Profile part and I am using the Extended Registration module to display this on the registration page. However, there does not seem to be a way to make any of my fields as required.

Do I have to build my own part to add to profile instead of using the built in fields?

Thanks,
Will

Coordinator
Jan 16, 2012 at 6:29 PM

Which profile module is that?

Coordinator
Jan 16, 2012 at 6:29 PM

Which profile module is that?

Jan 16, 2012 at 6:41 PM

Contrib.Profile

Coordinator
Jan 16, 2012 at 6:52 PM

Did you try adding attributes to the part properties?

Jan 16, 2012 at 7:02 PM

Can you elaborate on what you mean?
I have a Profile Content Part on which I have added a few text fields and choice lists. When adding a field to a part the only option I have is to select the field type. The User content type is decorated with the Profile content part. If I edit the user content type all I see on my custom fields is a checkbox for "Include in the index" and the couple of fields specific to the choice lists.

Where would I add these attributes?

Thanks,
Will

Coordinator
Jan 16, 2012 at 8:12 PM

Oh, ok, no you can't do that on fields that you added from the admin UI. At least not with the current version. You need code for that.