Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form functions ignore the configured type_field #77

Closed
hexedpackets opened this issue Mar 8, 2023 · 1 comment
Closed

Form functions ignore the configured type_field #77

hexedpackets opened this issue Mar 8, 2023 · 1 comment

Comments

@hexedpackets
Copy link

The function to_form (called by polymorphic_embed_inputs_for) is hardcoded to use __type__ as a hidden field. If the embedded schema is configured with a different type_field, the changeset will be invalid. I'm working around this for now by manually adding another hidden field with the correct field name.

Hidden field for reference:

hidden: [__type__: to_string(type)],

@woylie
Copy link
Contributor

woylie commented Mar 16, 2023

see #67, resolved in #68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants