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

Agent: field id="3" #1227

Open
mcruz-umich opened this issue Oct 18, 2023 · 1 comment
Open

Agent: field id="3" #1227

mcruz-umich opened this issue Oct 18, 2023 · 1 comment

Comments

@mcruz-umich
Copy link

mcruz-umich commented Oct 18, 2023

https://github.com/specify/specify6/blob/945d28f00288d2d64979848fb2fb63fda34bdd1b/config/backstop/global.views.xml#L862C44-L862C45

In experimenting with modifying the Agent form, I noticed that if I change the value of id="3" to id="lastname", then I get an error when the form is rendered.

                <row>
                    <cell type="label" labelfor="3" />
                    <cell type="field" id="3" name="lastName" uitype="text" colspan="5" isrequired="true" />
                    <cell type="label" labelfor="5" />
                    <cell type="field" id="5" name="firstName" uitype="text" />
                    <cell type="label" labelfor="4" />
                    <cell type="field" id="4" name="middleInitial" uitype="text" colspan="3" />
                </row>

image

Is there some code dependence on this ID field having the value 3?

@mcruz-umich
Copy link
Author

mcruz-umich commented Oct 18, 2023

Also if you delete this entry, then the form will not open in S6:

                <row>
                    <cell type="subview" viewname="Address" id="9" name="addresses" colspan="19" />
                </row>

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

1 participant