Project

General

Profile

Actions

Feature proposal #7664

closed

Implement support for CB Repeat conditions

Added by krileon over 5 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
31 July 2019
Due date:
% Done:

100%

Estimated time:

Description

With a CB Repeat usage an input gets cloned. The JS and PHP side conditions need to be able to properly update the show, hide, and condition target elements to account for this.

Actions #1

Updated by krileon almost 4 years ago

  • % Done changed from 0 to 30
Actions #2

Updated by krileon almost 4 years ago

  • % Done changed from 30 to 0

This may not be possible without a completely rewrite to the jQuery, which would have to wait for CB 3.x when jQuery is removed entirely. Continue exploring options. Main issue is how it binds to elements parent container element, which is not updated by CB Repeat. Maybe CB Repeat should be updating that parent container?

Actions #3

Updated by krileon almost 4 years ago

  • % Done changed from 0 to 70

Improved jQuery to be aware of when a condition is inside of a field group. When it is it will try to find the field inside the field group row first before looking outside. As for PHP side if the field being conditioned is inside of a field group and the field being checked against is also in that field group it will pull its value from that field group.

Actions #4

Updated by krileon almost 4 years ago

  • % Done changed from 70 to 90
Actions #5

Updated by krileon almost 4 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 90 to 100
Actions #6

Updated by krileon almost 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF