formio / angular

JSON powered forms for Angular
https://formio.github.io/angular-demo
MIT License
613 stars 461 forks source link

[Custom Components] Problem with advanced logic #1045

Open adhonay opened 4 months ago

adhonay commented 4 months ago

abrir chamado com bug da logica adicional

Environment

Please provide as many details as you can:

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 commented 3 months ago

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.