Connect Checkbox to Subscription

Hey guys!

I know you can now add a checkbox to the wix forms which connects to signup to newsletter i.e. makes the profile a subscriber in the Wix CRM (as attached).

Is there anyway to do this with a custom form now? Ie create a checkbox saying ’ subscribe to newsletter’ and when ticked it automatically sets that user as subscribed in the Wix CRM?

Thank you!!