chamilo-lms icon indicating copy to clipboard operation
chamilo-lms copied to clipboard

How to add custom extra fields in registration page

Open noelmubeya opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Additional context Add any other context or screenshots about the feature request here.

noelmubeya avatar Nov 17 '23 02:11 noelmubeya

You have to use the followings configuration settings in app/config/configuration.php

// Only shows the fields in this list
/*$_configuration['allow_fields_inscription'] = [
    'fields' => [
        'official_code',
        'phone',
        'status',
        'language'
    ],
    'extra_fields' => [
        'birthday'
    ]
];*/

// Set extra fields as required in the inscription.php page
/*$_configuration['required_extra_fields_in_inscription'] = [
    'options' => [
        'terms_ville',
        'terms_paysresidence',
    ],
];*/

uncomment the configuration and adapt it to your needs.

Best regards

NicoDucou avatar Nov 17 '23 08:11 NicoDucou

In app/config I don't see configuration.php

I can see config.yml, config_dev.yml, vonfig_prod.yml etc

Or should I add configuration.php file?

noelmubeya avatar Nov 17 '23 15:11 noelmubeya