Skip to content

Format function to resolve reference from picker #1205

@bjarnef

Description

@bjarnef

When using magic string we can reference a field on page level, e.g. an employee picker: https://docs.umbraco.com/umbraco-forms/developer/magic-strings#umbraco-page-field

However this would just return the Guid, but sometimes it would be nice to reference the email property on that node.

It seems to be possible to add a custom format function, but I wonder it there could be something similar to ncNodeName in Angular?
https://docs.umbraco.com/umbraco-forms/developer/magic-strings#creating-a-custom-format-function

or actually more like mediaItemResolver used in block previews, which resolves the entity and allow referencing properties. Unfortunately we don't have a contentItemResolver which would superseed the ncNodeName, which only resolves the node name, but that is not always what we want.
umbraco/Umbraco-CMS#15291

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions