angular icon indicating copy to clipboard operation
angular copied to clipboard

form manager doesn't work

Open sarashid opened this issue 5 years ago • 9 comments

i'm trying to use a Form Manager but this error keep show up error

sarashid avatar Jan 29 '20 10:01 sarashid

You need to have an AppConfig in your application. See https://help.form.io/intro/guide/#appconfig and you add it to your module like this.

...
...
import { AppConfig } from './config';
import { FormioAppConfig } from 'angular-formio';

@NgModule({
  ...
  ...
  providers: [
    {provide: FormioAppConfig, useValue: AppConfig}
  ]
})
export class AppModule { }

travist avatar Jan 29 '20 15:01 travist

actually i added appConfig to my project but i still have the same issue

sarashid avatar Jan 30 '20 07:01 sarashid

The error is No provider for FormioAppConfig and my suggestion was to add it to the providers of your module. I am not sure why this would not work. Please provide a demo of the issue so we can see how your code is structured. Do you have multiple modules in your application?

travist avatar Jan 30 '20 15:01 travist

I tried to add authentication module and form module, there is my demo : https://github.com/sarashid/form-Builder

sarashid avatar Feb 02 '20 08:02 sarashid

@travist

sarashid avatar Feb 09 '20 08:02 sarashid

I am curious if anyone else is having this problem. Nobody else is really chiming in.... one that happens I will take a look.

travist avatar Feb 10 '20 21:02 travist

It seems like there's no way to use the formbuilder without adding some API URL. If you use a blank appConfig the form builder will not launch at all. If you add a dummy placeholder like '' or demo it will throw console errors.

binury avatar Jun 18 '20 18:06 binury

StaticInjectorError(AppModule)[IndexComponent -> FormManagerService]: image Have followed the recommendations above, still getting the same error. Any further recommendations will be appreciated. Code is here dev branch: https://dev.azure.com/stevenbowler1/angularFormIO/_git/sbFormIO
Cheers.

stevenbowler avatar Jul 20 '21 01:07 stevenbowler

Hi, having the same issue. Any updates on this?

radonyizsolt avatar Mar 21 '23 21:03 radonyizsolt