This code snippet will help up to add address field inside form api
$address_...

Contribution Date
Technology
Contribution Project
Contribution Details

This code snippet will help up to add address field inside form api

$address_form = $form; field_attach_form('user', $entity, $form, $form_state, NULL, array( 'field_name' => 'field_register_address', )); $form['issuer_register']['address'] = $address_form['field_attach_form'];

Here

user is entity, you can change it if your address field use is node

field_register_address is machine name of address-field, change it accordingly

Contribution Author
Files count
0
Patches count
0