Skip to content

Conversation

@travist
Copy link
Member

@travist travist commented Sep 11, 2025

Link to Jira Ticket

https://formio.atlassian.net/browse/FIO-10653

Description

For scripts written with the following, it will crash.

var show = true; show = false; return show

This is actually added in our Custom conditionals here https://github.com/formio/formio.js/blob/main/src/utils/utils.js#L294

Breaking Changes / Backwards Compatibility

None

Dependencies

None

How has this PR been tested?

Manual

Checklist:

  • I have completed the above PR template
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (if applicable)
  • My changes generate no new warnings
  • My changes include tests that prove my fix is effective (or that my feature works as intended)
  • New and existing unit/integration tests pass locally with my changes
  • Any dependent changes have corresponding PRs that are listed above

@brendanbond brendanbond merged commit 17c5de5 into master Sep 11, 2025
1 of 2 checks passed
@brendanbond brendanbond deleted the fix-protected-eval-fn branch September 11, 2025 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants