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.formid has no effect on Field.oid autogeneration #394

Open
ezag opened this issue Feb 6, 2020 · 1 comment
Open

Form.formid has no effect on Field.oid autogeneration #394

ezag opened this issue Feb 6, 2020 · 1 comment

Comments

@ezag
Copy link

ezag commented Feb 6, 2020

As per docs, formid argument is intended for placing more than one Deform form into a single page. Though autogenerated oids will conflict in this case (violating HTML standard and breaking JS that rely on DOM ids) unless being explicitly specified in schema, or multiple forms being initialized with a shared counter. Could this be fixed by making parent formid a part of autogenerated oid?

@stevepiercy
Copy link
Member

@ezag I think that is a good proposal. Would you like to submit a PR with tests? I'd accept it.

Please note that we are dropping Python 2.7 and 3.4 in the next release, so you don't need to test for that.

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

No branches or pull requests

2 participants