[Custom Components] Problem with advanced logic

Offen
#1,045 4 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@Sidiro23 arbeitet bereits daran.

Seit 09.10.2024.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
706
Forks
493
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Hat eine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus formio/angular

Alle Issues in formio/angular

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.