No sure if you figured this out yet or not, what I did though, was used the custom action and added this code for my custom fields to update it.
function my_form_custom_action( $form) {
// $formId = $fields['formId'];
// $postId = $fields['postId'];
$settings = $form->get_settings();
// $files = $form->get_uploaded_files();
$fields = $form->get_fields();
$user_id = get_current_user_id();
foreach ($settings['fields'] as $field) {
if (isset($field['label']) && $field['label'] == 'form-id') {
if ( $field['value'] == 'update_user') {
if ($fields['form-field-99c370'] != null) {
update_user_meta( $user_id, 'first_name', $fields['form-field-99c370']);
}
if ($fields['form-field-yuetdu'] != null) {
update_user_meta( $user_id, 'last_name', $fields['form-field-yuetdu']);
}
if ($fields['form-field-srcbkn'] != null) {
update_user_meta( $user_id, 'company', $fields['form-field-srcbkn']);
}
if ($fields['form-field-mfobhg'] != null) {
update_user_meta( $user_id, 'phone_number', $fields['form-field-mfobhg']);
}
if ($fields['form-field-clfpcb'] != null) {
update_user_meta( $user_id, 'postal_code', $fields['form-field-clfpcb']);
}
}
if ( $field['value'] == 'register') {
update_user_meta( $user_id, 'company', $fields['form-field-syybci']);
update_user_meta( $user_id, 'phone_number', $fields['form-field-wehnqf']);
update_user_meta( $user_id, 'postal_code', $fields['form-field-ufzomx']);
}
}
}
}
add_action( 'bricks/form/custom_action', 'my_form_custom_action', 10, 1 );
Basically, once the person registers, the form does the auto-login, which allows the custom action to retrieve their user-id and make the updates accordingly. i also had a separate form to update the fields later one, so their is a hidden field on both forms for form-id, that way the code could be made to handle differently for a registration vs an update.
I had looked into maybe creating an extension to the form element, or the registration action somehow to include the extra custom fields a different way, but I don’t know that much so couldn’t really figure it out without creating a bunch of other issues.
Hopefully this helps, I think I initially figured it out from a different forum post somewhere on here.