Replies: 1 comment 1 reply
-
@Kikky what you need to do here is set the field type to {
name: "value",
type: "text",
admin: {
components: {
Field: () => {
// render anything you want here, including the Payload relationship component
// interact with form state as needed using form hooks
// then, save your relationship ID as a string to this text field using field hooks
}
},
},
} Give this a shot and let me know how it goes 👍 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I want to create controlled relationship field with buttons to fill in the data quickly. As I understand I need to use useField() hook and etc.
But...I can't render this code:
Just getting this error ("No suitable field was found for "Value""):

If I change field type to UI:
I can properly render it without errors, but ofc the value isn't stored at DB after update:

Can you please help me with this problem? Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions