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

Cannot change the type of a component with Merge Component Schema #5364

Open
maartenvr98 opened this issue Oct 9, 2023 · 0 comments
Open

Comments

@maartenvr98
Copy link

Hi. I'm unable to change the type of a component with logic and Merge Component Schema. This is the JSON right now:

{
  "type": "textfield",
  "input": true,
  "label": "Value",
  "key": "value",
  "logic": [
    {
      "name": "Change Type",
      "trigger": {
        "type": "simple",
        "simple": {
          "show": true,
          "when": "type",
          "eq": "datetime"
        }
      },
      "actions": [
        {
          "name": "updateSchema",
          "type": "mergeComponentSchema",
          "schemaDefinition": "schema = {label: 'test', type: 'datetime'}; return schema;"
        }
      ]
    }
  ]
}

Is it possible to make it work? I can see that the label is changing so I can confirm that the schema is updating.

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

No branches or pull requests

1 participant