Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(FormEditor): allow condition="always" #4879

Merged
merged 1 commit into from
May 21, 2024
Merged

Conversation

maxpatiiuk
Copy link
Member

Fixes #4872

Checklist

  • Self-review the PR after opening it to make sure the changes look good
    and self-explanatory (or properly documented)
  • Add automated tests
  • Add relevant issue to release milestone

Testing instructions

  • Make sure there is no validation error for condition="always"
  • Make sure there is no validation error for any valid field name condition="text1=abc"
  • Make sure there are validation errors for any other values

@maxpatiiuk maxpatiiuk requested review from alesan99 and a team May 2, 2024 23:52
@maxpatiiuk maxpatiiuk self-assigned this May 2, 2024
@CarolineDenis CarolineDenis added this to the 7.9.6 milestone May 3, 2024
Copy link
Collaborator

@emenslin emenslin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing instructions

  • Make sure there is no validation error for condition="always"
  • Make sure there is no validation error for any valid field name condition="text1=abc"
  • Make sure there are validation errors for any other values

Looks good, error only thrown when there is an invalid field name.

@emenslin emenslin requested a review from a team May 8, 2024 16:12
Copy link
Collaborator

@combs-a combs-a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing Instructions

  • Make sure there is no validation error for condition="always"
  • Make sure there is no validation error for any valid field name condition="text1=abc"
  • Make sure there are validation errors for any other values

Looking good on my end--tested out a handful of different values for ones that should be invalid (random letters, properties that are used in different fields, invalid field names, true/false) and didn't run into any issues. Good work!

Copy link
Contributor

@alesan99 alesan99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Make sure there is no validation error for condition="always"
  • Make sure there is no validation error for any valid field name condition="text1=abc"
  • Make sure there are validation errors for any other values

I am now able to save my original form that contains the conditional example 👍👍

@maxpatiiuk
Copy link
Member Author

@CarolineDenis can this be merged?

@CarolineDenis
Copy link
Contributor

no, this is part of 9.6 we have 9.5 before

@maxpatiiuk
Copy link
Member Author

didn't conditional form editing go into the 7.9.4 release?

@acwhite211 acwhite211 self-requested a review May 20, 2024 16:51
@CarolineDenis CarolineDenis merged commit 6f82268 into production May 21, 2024
9 checks passed
@CarolineDenis CarolineDenis deleted the issue-4872 branch May 21, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Visual Editor does not recognize condition="always" as a valid field
6 participants