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 · 4 comments
Open
1 of 2 tasks

[Custom Components] Problem with advanced logic #1045

adhonay opened this issue Jan 10, 2024 · 4 comments

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.

@formio formio deleted a comment from lane-formio Oct 9, 2024
@adhonay
Copy link
Author

adhonay commented Oct 9, 2024

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.

Now that I saw your question, were you able to resolve it?

I received the notification when they marked the @lane-formio and @Sidiro23 no error.

And I still don't know if it was resolved, I had to stop the project precisely because there was a conflict in the custom components and additional logic native to Formio.

@lane-formio
Copy link
Contributor

Would it be possible to provide a code sandbox to help triage this?

@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.

Now that I saw your question, were you able to resolve it?

I received the notification when they marked the @lane-formio and @Sidiro23 no error.

And I still don't know if it was resolved, I had to stop the project precisely because there was a conflict in the custom components and additional logic native to Formio.

Hi @adhonay,
I was able to create the custom component. although there are some intermittent issues we face from time to time, like custom components stop rendering but a quick refresh fixes that. Although this does become time-consuming at times.

The other thing is, because we need to override the edit form to add out own fields to it, the advance logic stops working. There are some other issues as well. I believe you have mentioned that advance logic has problems. I was just wanted to double-check if you were able to figure it out or if there is a hack for that.

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

4 participants