I need to save some additional information related to the membership during sign-up. This will be stored in custom fields of the membership. Sign-up (Membership creation) is happening through a Contribution Page which includes a Profile with those custom fields.
The Profile does not transfer the values from the custom field into the custom field of the newly created Membership.
Previously I used (Drupal Module) custom code and the civicrm_api to update the membership. However, nowadays I don't seem to be able to get the
membershipID values from the
$form->_params array anymore.
How can I add custom fields to a Membership from a Contribution Page?