How to create extra-field in members similar to country dropdown

Hi,

Any one created extra fields in external members registration page similar to:

  1. Drop down similar to country dropdown where all of the country names are listed.
  2. Text box with button to upload documents

Kindly help.

Here is the tip to customize : https://<yourdomain.com>/public/members/new.php

a) Changing the following in stylesheet will change the background color of seperator text:

.trextrafieldseparator td, .trextrafields_collapse_last td {
background-color : #ffefea !important;
}

b) There seem to be a bug in 14.0.5 that the text in the separator in span to only one column while the others are in two columns (like label and field). Please check the file. It may be as below:

$out .= $extrafields->showSeparator($key, $this, $colspan + 1, $display_type);

So, to span your text in two columns, you can change the below code as:

$out .= $extrafields->showSeparator($key, $this, ($colspan ? $colspan + 1 : 2), $display_type);

This is present in Line number 7825 in file
Dolibarr: htdocs/core/class/commonobject.class.php Source File

thank you.