CoreForm Props Reference

CoreForm Props Reference

The <CoreForm /> component from @kineticdata/react is the primary way to render and interact with Kinetic Platform forms in your front-end application. It supports a wide range of props that enable deep customization of behavior, layout, and data loading.


Basic Usage

import { CoreForm } from '@kineticdata/react'

const FeedbackForm = ({ kappSlug }) => (
  <CoreForm
    kapp={kappSlug}
    form="feedback-form"
    onCompleted={handleSubmit}
  />
);
 

💡

If you do not include an onCompleted prop (e.g., onCompleted={handleSubmit}), the form will not forward or complete its submission flow. Be sure to define this callback to handle post-submission behavior like navigation or confirmation messages.

Before using CoreForm, make sure you've completed the Your React Library Setup.


Props

These are all the available props for the CoreForm component from @kineticdata/react.

❗️

Not seeing a prop you've used before?

It might be deprecated. Use components for customization going forward.

PropTypeDescription
globals() => Promise | PromiseCode to load before the form loads.

This is typically used to load global libraries (such as lodash or moment) that can then be used in events of the Kinetic form builder.

The globals prop can also be passed to the KienticLib component instead of being passed to every CoreForm component.
submissionstringIf you want to load an existing form submission, provide its ID here.
formstringSlug of the form to load if the submission ID is not provided.
kappstringSlug of the Kapp that contains the form defined by form.
values{ [valueName: string]\: string }Map of field values to pass to the form.
reviewboolean | stringBoolean determining if the form should be opened in review mode, or a string matching a page name to open the form in review mode to a specific page.
onUnauthorized() => nullFunction to run when a 401 error occurs.
onForbidden() => nullFunction to run when 403 error occurs.
onNotFound() => nullFunction to run when 404 error occurs.
onError() => nullFunction that will execute when the form returns any error.
onLoaded() => nullFunction that is called after the form is loaded.
onCreated() => nullCalled after a new submission is successfully created.
onUpdated() => nullCalled after an existing submission is updated.
onCompleted() => nullFunction that will execute when a submission is submitted.
originIdstringThe ID of the originating submission.
parentIdstringThe ID of the parent submission.
componentsobjectComponent overrides map.
components.PendingReactElement()Component to display when the form is loading.
components.UnauthorizedReactElement()Component to display when the form returns a 401 error.
components.ForbiddenReactElement()Component to display when the form returns a 403 error.
components.NotFoundReactElement()Component to display when the form returns a 404 error.
components.UnexpectedReactElementComponent to display when the form returns any other error.
components.LayoutReactElement()Component used to display the entire content of the CoreForm.
reviewPaginationControlComponentReactElement()Component used to display pagination when the form is in review mode and has multiple displayable pages.


Next Up

Now that you're familiar with the available props for <CoreForm />, you’re ready to start customizing your form experiences with confidence.

If you’re unsure about a prop or encounter unexpected behavior, refer to the latest @kineticdata/react package documentation or reach out to the platform team for guidance.