Skip to content

WIP: Solve issues with enableWhenExpression by re-writing it into calculat…#48

Open
ruscoder wants to merge 1 commit into
mainfrom
enable-when-expression-converter
Open

WIP: Solve issues with enableWhenExpression by re-writing it into calculat…#48
ruscoder wants to merge 1 commit into
mainfrom
enable-when-expression-converter

Conversation

@ruscoder

Copy link
Copy Markdown
Member

…ed + enableWhen

@ruscoder

Copy link
Copy Markdown
Member Author

What actually happens:

item: 
  - linkId: first
     type: string
   - linkId: second
      enableWhenExpression:
        expression: %resource.where(linkId='first').answer.valueString = 'test'

item: 
  - linkId: first
     type: string
   - linkId: second-calculated
      hidden: true
      calculatedExpression:
        expression: %resource.where(linkId='first').answer.valueString = 'test'
   - linkId: second
      enableWhen:
        - question: second-calculated
           answer:
              valueBoolean: true

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.

1 participant