Skip to content

FR: add valueSource in addition to labelSource for element selection fields. #2620

@michtio

Description

@michtio

What are you trying to do?

Currently we have labelSource where we could select some configured settings, especially when extending we do have quite some control over this which source we want to display, and it's easy enough in an extension to show anything from your custom fields in there.

Although - what would be really useful under the hood, is if we create custom element fields for Formie, that we can also leverage a valueSource option, currently that's quite fixed to the Element ID of Craft CMS, which works, but if you want to map towards an integration, that ID will be sent, so the current option is only to hi-jack that submission and add an element query that fetches the relevant data, which also includes the query count for triggering integrations.

What's your proposed solution?

It would be nice to have a (developer option only maybe? Or only by opting in through code?) valueSource option where you could also select what you want to see as value in the rendered dropdown/checkbox/... view of an element.

Especially with custom elements linked into third parties, those third parties usually have their own ID system to keep things in sync, which would also live in custom elements.

Additional context

No response

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