Skip to content

looking for a way to let user define a custom field for a rule #304

Open
@megantaylor

Description

@megantaylor

i want to allow a user to create a rule for a custom field.

so the user experience would be something like:

click add rule

select something like "Custom" from the field select dropdown

this would generate a text input (for the custom field name), an operator dropdown, and a second text input (for the custom field value).

so the user could do something like "custom_field" = "some value".

desired output to jsonLogic would look something like {"==":[{"var":"custom.custom_field"},"some value"]}

i have played with the !group and !struct types but they don't quite do what i'm looking for.

is there a way to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature: extExtend existing functionality for new requirements

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions