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).
Loading sandbox…
