question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
thidasapankajacommented, Mar 3, 2021

@erickvieira , @megantaylor if anyone any of you were able to get through this / figure this out?

4reactions
megantaylorcommented, Oct 14, 2020

maybe, except i wanted to let the user define the key in a text input. i wound up not needing to do this, but it could be a useful feature for others.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Make a custom field required - Salesforce Help
Field level requirements · Click on Setup. · Go to Quick Find and enter Object. · Choose the object. · Under the Custom...
Read more >
Use Custom Fields in rules | Trello | Atlassian Support
Custom Field variables. Your rule's actions can reference values in Custom Fields by using Custom Field variables. To reference a Custom Field's value...
Read more >
Adding custom fields to your tickets and support request form
Creating custom ticket fields · In Admin Center, click Objects and rules in the sidebar, then select Tickets > Fields. · Click Add...
Read more >
SAP Business One Custom Fields or User Defined Fields UDF's
This video will demonstrate how to create custom fields in SAP Business One and also how to change their location within the modules....
Read more >
Create a custom field in Project - Microsoft Support
Create a custom field. In Grid view, select Add column > New field. Screen shot of Project showing Add column header and New...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found