How to save and display custom field values from frontend in shopware6?

My custom field name is name=“enable_abandoned_cart_notification_email”

I want to save the value during customer registration

Is it automatically save?

What will be the name(it is a checkbox field)?

name=“customer[customFields][enable_abandoned_cart_notification]”

or 

name=“customFields[enable_abandoned_cart_notification]” ? 

In shopware 5 it will be automatically saved(Free text field).

 

1 „Gefällt mir“