vinzdeveloper / json-rule-editor

Json rule editor
GNU General Public License v3.0
375 stars 109 forks source link

Select drop-down facts #30

Open eazuka opened 3 years ago

eazuka commented 3 years ago

First i want to say you have done a really nice work with the json rule builder, your efforts are appreciated.

I will like to know, how is it possible to drop down select box for facts. I want option where for example, if i am created a country fact, i want the user to only be able to select available country i have added to dropdown. User should not be able to type country. and other use case for drop down select box.

How possible is this?

vinzdeveloper commented 3 years ago

Thanks @eazuka , Currently we dont have any functionalities to maintain possible fact values to be selected. When we creating facts, it just prompt fact name and type. Only during validation, we can verify our expected output is returned or not.

However, it will be nice to have the control of fact values to be selected. Probably, we can prompt possible values for facts while creation itself (along with fact name and type) and same values can be populated in dropdown mode instead of free form text. I will think about it and if anybody shows interest, i will prioritise it.