Feature proposal #4887
closed
implement and/or conditions
Added by krileon almost 10 years ago.
Updated almost 7 years ago.
Start date:
25 November 2014
Description
redesign how conditionals are configured and stored using new repeat usage and implement support for AND/OR conditions.
This can be done by having a repeat within a repeat usage. Conditions will be surrounded by fieldsets. The fieldsets will repeat and the condition inside the fieldset will also repeat. Each fieldset is an OR usage and each condition in the fieldset is an AND usage. So you could have the following scenario.
(CONDITIN1 and CONDITION2) or (CONDITION3 and CONDITION4)
Where the first one is FIELDSET1 and the second is FIELDSET2. This should keep configuration rather simple and should be easy for PHP/jQuery to parse.
Conditional others is where all of this becomes a problem though. So conditional others maybe just completely removed in favor of conditional self only. If possible conditional others could be treated as an OR usage maybe.
- % Done changed from 0 to 20
Initial XML param structure implemented as discussed above with outer repeat usage handling OR usage and inner repeat usage handling AND case. Example as follows
Conditions
- Condition 1
- AND Condition 2
OR Conditions
- Condition 3
This means either Condition 1 AND Condition 2 must match OR Condition 3 must match.
- % Done changed from 20 to 80
Still needs migration and further jQuery API function improvements.
- Status changed from Assigned to Resolved
- % Done changed from 80 to 100
jQuery improvements done. See #6837 regarding migration.
- Status changed from Resolved to Closed
Also available in: Atom
PDF