Remote Schema

Forms built on the portal could be served in real-time using FormProvider

add clientId to your FormProvider Options

use formId in your forms instead of config in TutimWizard , useForm or if you want to manipulate the config, you could also use it with useFormConfig.

Example

import { TutimWizard, defaultFields } from "@tutim/fields";
import { FormProvider } from "@tutim/headless";

const App = () => {
  return (
    <FormProvider
      fieldComponents={defaultFields}
      options={{ clientId: "INSERT_CLIENT_ID_HERE" }}
    >
      <TutimWizard onSubmit={console.log} formId="INSERT_FORM_ID_HERE" />
    </FormProvider>
  );
};

export default App;

Last updated