Skip to content

Agent: field id="3" #1227

Open
Open

Description

@mcruz-umich

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?

Activity

  1. mcruz-umich commented on Oct 18, 2023

    @mcruz-umich
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions