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

[Custom Components] Problem with advanced logic #1045

Open
1 of 2 tasks
adhonay opened this issue Jan 10, 2024 · 1 comment
Open
1 of 2 tasks

[Custom Components] Problem with advanced logic #1045

adhonay opened this issue Jan 10, 2024 · 1 comment

Comments

@adhonay
Copy link

adhonay commented Jan 10, 2024

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.

@muneebahmad0600
Copy link

Hi... @adhonay, I hope you are doing well.
I have just started working on a custom component and am struggling to create one. I need to create a component that will call an API with the input value added in the edit form.
would you be able to share how you created your custom component?
documentation is not that great and I can't find an example for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants