Project

General

Profile

Actions

Bug #7011

closed

Field conditioning it self gets stuck in a loop

Added by krileon almost 7 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
02 February 2018
Due date:
% Done:

100%

Estimated time:

Description

This is a valid usecase, but when the field is reset it triggers the change event and triggers conditions again. This causes it to just get stuck in a loop. It should be able to keep track of this to prevent it from showing or hiding over and over again.

https://www.joomlapolis.com/forum/153-professional-member-support/238449-ajax-stopped?start=6

Actions #1

Updated by krileon over 4 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100
Actions #2

Updated by krileon about 4 years ago

  • Status changed from Resolved to Assigned
  • % Done changed from 100 to 90

Possible other loop case:

https://www.joomlapolis.com/forum/153-professional-member-support/242761-mask-for-field?start=12#320718

1) while the " Files "fields are empty, the" Checkbox " field is hidden, tab 2 is hidden.
2) the "Checkbox" field will become visible after downloading all three files.
3) tab 2 will become visible if the "Checkbox" is checked.

Sounds like issue with checkbox hiding tab 2 while the checkbox displays based off 3 fields on tab 2. This would cause a condition loop and throws a fatal JS error.

Actions #3

Updated by krileon almost 4 years ago

The infinite loop protection should force the condition to be a static condition to avoid the JS completely breaking. This would be the best possible protection against loops. This will limit some use cases, but will prevent catastrophic failures, which WILL break the forms ability to submit.

Actions #4

Updated by krileon almost 4 years ago

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

Updated by krileon over 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF