Public Form

The Public Form component is a dynamic, reusable form system designed to collect user input efficiently. It is rendered dynamically on the frontend based on the configuration provided by the backend, ensuring flexibility and central control over form structures. You can use it alone without reading the full documentation

Make sure you have applied the Authentication:

Authentication chevron-right

You have only to download those packages and start your journey:

npm i @tradinos/cms-frontend-entity --force
npm i @tradinos/cms-frontend-form --force
npm i @tradinos/cms-frontend-layout --force
npm install primeng@17 --force

And you need to update your angular.json file to apply the style in your app :

//If you want to use another theme, you need to replace it with "lara" theme 
"styles": [
    "src/styles.css",
    {
      "input": "node_modules/primeng/resources/themes/lara-light-blue/theme.css",
      "bundleName": "lara-light",
      "inject": false
    },
    {
      "input": "node_modules/primeng/resources/themes/lara-dark-blue/theme.css",
      "bundleName": "lara-dark",
      "inject": false
    }
]

In your index.html, you have to put this code:

In the style.css file, you have to make those imports:

in your app.component.html:

In your app.components.ts

Submit function:

In your app.config.ts

Last updated