[Custom Components] Problem with advanced logic

Open
#1,045 4 comments 0 reactions 1 assignee View on GitHub

@Sidiro23 is already working on this.

Since Oct 9, 2024.

Assessment

This issue has not been assessed yet.

Description

question scope: community scope: custom components

abrir chamado com bug da logica adicional

Environment

Please provide as many details as you can:

  • Hosting type
    • Form.io
    • Local deployment
      • Version:
        formiojs": "4.18.0
        formio/angular":" 6.0.0
        Node: 18.18.0
        Npm 10.1.0
  • Angular cli : 16.1.6
  • Browser: Chorme
  • Browser version: 120.0.6099.201

image

I created several customized components, as done in the documentation, but I have a serious problem.

If I add any type of advanced logic, the custom component starts to disregard all the logic I implemented in the editform.

For example:

image

Does anyone know how I can configure my logic implemented via code in editform along with formio's advanced logic?

Configuring my customcomponent.formio.ts
image

To simulate the error, simply create a customized component, add any logic to that component's editform file, and later create advanced logic through the configuration modal. The logic created in the editform file will not work, nor will it even execute.

Dominant language
TypeScript
Stars
706
Forks
493
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from formio/angular

All issues in formio/angular

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.