You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am having trouble getting relation selectors to work in 3.3.7, specifcally with a custom field from Products to a custom Entity.
The documentation references destructuring an input type of CustomFormComponentInputProps and the properties value, onChange, and disabled. These are not properties of the CustomFormComponentInputProps type, however.
I am also trying to register it in the plugin's dashboard/index.tsx, but it does not render. My field is called "artists", which is a relation from Products to the Artists entity. In the examples below, I replaced the reference to my relation selector component with a simple example.
Neither of these approaches work. The id in the customFormComponents.customFields array was retrieved from the browser Developer Tools for that field.
The documentation on input components and "Finding Page and Block IDs" also says that the block-id is "product-form" on the "product-detail" page, but I found that it was "main-form"
For example, this does replace the slug field with a headline
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am having trouble getting relation selectors to work in 3.3.7, specifcally with a custom field from Products to a custom Entity.
The documentation references destructuring an input type of
CustomFormComponentInputProps
and the properties value, onChange, and disabled. These are not properties of theCustomFormComponentInputProps
type, however.I am also trying to register it in the plugin's dashboard/index.tsx, but it does not render. My field is called "artists", which is a relation from Products to the Artists entity. In the examples below, I replaced the reference to my relation selector component with a simple example.
Neither of these approaches work. The
id
in thecustomFormComponents.customFields
array was retrieved from the browser Developer Tools for that field.The documentation on input components and "Finding Page and Block IDs" also says that the block-id is "product-form" on the "product-detail" page, but I found that it was "main-form"
For example, this does replace the slug field with a headline
Beta Was this translation helpful? Give feedback.
All reactions