Submitting a form with an entity field type (pages, products...)

In this example, we demonstrate how to submit a form that includes an entity field type, such as pages or products, using the OneEntry API.

โœ… Purpose of the scenario:
  • Get form configuration from OneEntry Platform
  • User select one of the elements of the entity
  • Submit the collected data to an OneEntry API.
โœ… What you need:
  • A valid PROJECT_URL and APP_TOKEN for authentication with the OneEntry API.
  • A pre-configured form in OneEntry with a marker (e.g., entity) and fields including one of type "entity".
  • A pre-configured form fields including one of type "entity".
๐Ÿ“Œ Important:
  • These examples do not include error handling.
  • You can manage errors using a try-catch block or by employing a construction like await Promise.catch((error) => error).
๐Ÿ“š See in documentation:
๐Ÿ“ฆ SDK reference:
Loading sandboxโ€ฆ