Issue submitting the screen with hidden fields

Hello. We are seeing the error “Invalid request data”

  1. There is a field A with radio button options X,Y,Z.
  2. On choosing ‘Y’ as the option, another field B is displayed(when rule is used as a visibility condition on field B).
  3. User inputs the field ‘B’
  4. User now, changes the input on the field A from ‘Y’ to ‘X’, causing the field B to be hidden.

I have included the attachment for reference

When the screen is submitted now, we see the error - Invalid request data. In the logs we see the error “The field XXX is not found in the view”

We are on 24.2.2. We see a similar bug registered with the product team(https://agilestudio.pega.com/prweb/AgileStudio/app/agilestudio/project-managements/US-629469). Wanted to know if anyone faced a similar issue and has any work around

@kammv not exactly same issue we had issue with error message not being cleared in version 23.1.1

Our issue was as below which was closed as enhancement FDBK-114019

  1. In View, configure 4 radio button fields with yes/no options.
  2. Add custom condition on Q2 to be visible only when Q1 is yes.
  3. When Q1 is no, add visible conditions to display Q3 and Q4.
  4. Now user has selected Q1 as yes. Q2 is visible. User submitted without answering Q2. So error message is displayed for Q2.
  5. User changed the option for Q1 as no. Q3 and Q4 are visible. Now user again submitted without answering Q3 and Q4. Instead of displaying error messages for Q3 and Q4, it is appending Q3 and Q4 error messages to existing Q2 error message.