Skip to content

[Feature Request] - Intra Form Linking / Key Path on ID #252

Closed
@quietlyconfident

Description

@quietlyconfident

It would be nice to be able to link to a location / field / etc. within a form.

There is already a Help field that a link could be inserted into. You could also link from a button.

The only issue is that there is currently nothing unique to link to. <input> divs have an ID attribute which is the name of their key; however, these are non-unique. E.g. in the Array example the 'name' field can be repeated so there are non-unique IDs. This is not permitted in HTML5 standard, but doesn't seem to cause any other problems so far.

One way to partially solve this would be to cause the ID of the form elements to be the full key-path (e.g.
fieldobj.subfield.name rather than just name). This would narrow it down considerably. For arrays, the index could be used (e.g. fieldobj.arrayobj[2].name). In the case of multiple forms being created on the page, the form name could be appended to the beginning of the field path.

If ASF created the IDs on the elements this way then intra form linking would be a snap.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions