Input forms
Create and manage form schemas in Studio. Use the public form client in a browser to submit data.
Configure the form in Studio
In Studio, add the fields and active state for each form. Studio provides the form's public key when you create or rotate it. Core automatically uses the website's configured domain as the form's allowed browser origin.
Submit from the browser
import { createNukleFormClient } from '@lazrus/nukle';
const contact = createNukleFormClient({
formKey: 'nukle_form_your_public_key',
});
await contact.submit({
message: 'Hello from our website',
});
The form key is limited to submissions for that form. To move the form to a new domain, update the website domain in Studio; the new origin takes effect for both website reads and form submissions.