Business Rules has an alpha release and a very young userbase to review it. It appears to provide a Rules-like engine and interface that can potentially replace Conditional Fields. The developer(s) made no obvious mention about its internal stability or overlap with Conditional Fields or Rules 8.x, so that seems like one good starting point for code reviewers and Conditional Fields users.

Comments

mitchell created an issue. See original summary.

colan’s picture

Category: Task » Plan
Status: Active » Postponed (maintainer needs more info)

Thanks for this. I just updated the project page here with information on Business Rules, in a Similar Modules section, and alerted folks to this issue.

Business Rules sounds promising. I'd be willing to deprecate this module in favour of it at some point if it's feature complete, but given the following:

  • Nobody's done a thorough assessment comparing Conditional Fields and the Dependent Fields component of Business Rules.
  • Nobody's actively maintaining Business Rules: #2924213: Business Rules appears to be unsupported.
  • Business Rules doesn't have a stable release yet either.
  • Conditional Fields has a very large user base compared to Business Rules.

...I'm going to keep working on Conditional Fields. If there is indeed a case to be made to focus our efforts over there, I'd love to hear it.

However, given the above points, it looks like things may in fact go the other way and Business Rules users may come here. It may not be necessary at all anymore once this module and Rules become more stable. Let's let this percolate for a while, and see what happens.

There's not much more I can do at the moment. Persons' thoughts on this are always welcome.

geek-merlin’s picture

Apart from business rules looking like a one-off fork of rules+the views-paremeters feature that exists as core patch,
these are totally different architectures:
* dependent fields using serverside logic and ajax
* dependent fields using clientside js via state api

Wee need both, so keep on the good work!

spanners’s picture

I've been evaluating both Conditional Fields and Business Rules for a Drupal 8 project I'm working on.

Dependent Fields only works if you have two select fields or radio buttons/checkboxes

In an example using two select fields, the 2nd select field's options are made available based on the value of the 1st select field.

The animated gif on the Dependent Field example page in the Business Rules docs gives a pretty good example of this.

So Business Rules is not the right option if you wanted to, say, expose some new fields based on the value of a field. That's definitely where Conditional Fields come in.

c.e.a’s picture

"Business Rules" module can be easily compared with the "Rules" module...

However, there is no similar functionality between the "Business Rules" module and the "Conditional Fields" module but only one !

So I can easily say, as a heavy user of both Business rules and Conditional Fields modules, both modules are 95% not similar in functionality!

colan’s picture

Status: Postponed (maintainer needs more info) » Fixed

That's everyone! I updated the info on the project page.

colan’s picture

Updated credit.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.