keystone icon indicating copy to clipboard operation
keystone copied to clipboard

"Create related X" popover doesn't relate back to parent item

Open Thinkscape opened this issue 2 years ago • 2 comments

Steps

  1. Have schema with User and Post lists
  2. Post.user is in relationship with User.posts
  3. Open Admin
  4. Create new User item by filling form and pressing Create User
  5. In the edit sheet, under Posts press Create related Post
  6. The edit popover sheet appears to the right.

Expected

The User field is pre-filled with the relevant User record that we wanted to create "related" post for.

Actual

The form is completely empty (unless default values in field config) and one has to manually search and pick the correct User to create relationship, which is error-prone and tedious. Given that the popover has the context of where it was opened from, it should be trivial to pre-fill the field with the back-reference.

Thinkscape avatar May 29 '23 09:05 Thinkscape

Have you any found solutions for prefill field value in 'create related x'?

jinookoo avatar Nov 06 '23 08:11 jinookoo

Have you any found solutions for prefill field value in 'create related x'?

Yeah, nah. This part of admin is not customisable at all, so the fix needs to land in keystone itself.

Thinkscape avatar Nov 08 '23 23:11 Thinkscape