Skip to content

Branching logic error - bug when original value is changed. #60

@dimitriscing

Description

@dimitriscing

1

2

3

The second question in the photo above is only shown when the first question is answered “Yes” and the third question is only shown when the second question is “Yes”. The problem occurs when I change the first question to “No” or “Unknown” and I Save the form, then I get this message BRANCHING LOGIC ERRORS EXIST! There is definitely not a syntactical error in the branching logic as it is simple and straightforward.

I am facing similar problems in other instruments in the same project and the branched fields show errors when the original value is changed, and in some other cases they are cleared without any problems after the form is saved.

When I disable the external module the branching logic works okay, showing only the warning “ERASE THE VALUE OF THE FIELD” which is expected.

Interestingly, when I make the second question NON-Required the error message disappears.

Example number 2:

Screenshot 2022-10-11 092524

Screenshot 2022-10-11 095042

I have a field in the Annual Update General Information Instrument called Projects. Depending on which checkbox is checked in Projects, different fields are shown in other instruments in the same project. I check GenoMed and INHERENT and save Annual Update General Information. Then I go to Medical History and I save the instrument also. The issue occurs when I go back to to Annual Update General Information and uncheck GenoMed and INHERENT and then save the instrument. When I go to Medical History instrument and try to save it I get this error :

Screenshot 2022-10-11 105058

However the branching logic errors I receive are completely unrelated to the fields unchecked in the Annual Update General Information. The fields that are supposed to have errors, have their own branching logic but they are NOT connected to the field Projects . I get 25 error messages because of this and the user needs to click OK 25 times for the popup to go away. This happens only on the first Save. After the first save the issue goes away.

I am not sure why it is behaving like this selectively, and in some cases, it works fine and, in some others, I get this error.

I’ve used different browsers with the same results.

REDCap: 12.4.1 · PHP 7.4.3 (Linux/Unix OS) · MySQL 8.0.30 / Auto Populate Fields - v2.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions