Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/asoftwareworld/asw-form-builder-pro

ASW Form Builder helps you with rapid development and designed web forms that include several controls. The key feature of Form Builder is to make your content attractive and effective. We can customize our control at run time and preview the same before final submission.
https://github.com/asoftwareworld/asw-form-builder-pro

angular angular-form-builder angular-material angularcomponent asw-form-builder drag-and-drop form-builder forms typescript

Last synced: 9 days ago
JSON representation

ASW Form Builder helps you with rapid development and designed web forms that include several controls. The key feature of Form Builder is to make your content attractive and effective. We can customize our control at run time and preview the same before final submission.

Awesome Lists containing this project

README

        

ASW Form Builder PRO - Design dynamic web forms.


asw-logo


ASW Form Builder PRO helps you with rapid development and designed web forms which includes several controls

using Angular/Angular-Material and Bootstrap.




https://asoftwareworld.com/product/form-builder/demo



Contributing Guidelines
·
Submit an Issue
·
Blog






CI status
 

Discord conversation


# Documentation

`ASW Form Builder` helps you with rapid development and designed web forms which includes several controls. The key feature of `Form Builder` is to make your content attractive and effective. We can customize our control at run time and preview the same before final submission.

`Form Builder` is compatible with the latest version of Angular and Angular Material. Only a few clicks can create an attractive web form and provide a JSON Schema to render all controls.

## Installation
Below are some prerequisites before install `Form Builder`.

### Step 1: Install Angular Material
Install `Angular Material` by running the following command:

```html
ng add @angular/material
```

### Step 2: Install ASW Form Builder PRO
Install `Form Builder` to set up in the project by running the following command:
```html
npm install @asoftwareworld/form-builder-pro
```

### Step 3: Set the license key
ASW Form Builder Pro will display an invalid key watermark if you do not set a license key. ASW Form Builder validates the license key without any network call. The license key for Form Builder Library is a one-time setup. You don't need to set license key for each instance of form builder you create, just need to set it statically in `main.ts` file as shown below:
```
import { AswLicense } from '@asoftwareworld/form-builder-pro/core';

AswLicense.registerLicenseKey('your license key');
```

### Step 4: Import the component modules
Import the NgModule for each component you want to use:

```
import { AswFormBuilderModule } from '@asoftwareworld/form-builder-pro/form-builder';
import { AswPreviewTemplateModule } from '@asoftwareworld/form-builder-pro/preview-template';
// ...

@NgModule({
imports: [
// shown passing global defaults (optional)
AswFormBuilderModule,
AswPreviewTemplateModule
...
]
// ...
})
export class AppModule {}
```
### Step 5: Include a theme

Including a theme is required to apply the form builder and controls design.

You can include this theme in component `SCSS or CSS` files to not use this globally in your application.

```html
@import '~@asoftwareworld/form-builder-pro/theme/asw-theme.min.css';
```

If you're using the Angular CLI, and you want to use themes globally in your application. Then you can add this to your `styles.css` or `angular.json`:

`styles.css or styles.scss`:

```html
@import '~@asoftwareworld/form-builder-pro/theme/asw-theme.min.css';
```
or

`angular.json`:
```html
"styles": [
"./node_modules/@asoftwareworld/form-builder-pro/theme/asw-theme.min.css"
],
```

If you are not using the Angular CLI, you can include a theme via a `` element in your `index.html`.

## Add a selector to HTML
In your template, use the component selector:
```

```
Preview Template, use the component selector in your HTML page:
```

```

Define in your component to get published event :

```
export class AppComponent {
title = 'ASW Form Builder Demo';
jsonData: any[] = [];
jsonData1: any[] = [];
isShowPreviewButton = false;
isShowJsonDataButton = true;
isShowPublishButton = false;

// Publish Template
saveJsonData(data: any){
//....
console.log(data);
// do something
}

//Preview Template
previewTemplate(data: any){
this.jsonData = data;
}

buttonClick(data: any): void {
console.log(data);
}

onSelectionChange(control: any): void {
console.log(control);
}
}

```

## ASW Form Builder PRO Documentation
[Get Started](https://asoftwareworld.com/product/form-builder/get-started)

[API](https://asoftwareworld.com/product/form-builder/api)

## Theme
Angular Material [more information](https://material.angular.io/components/categories)
and Bootstrap [more information](https://getbootstrap.com/docs/4.0/getting-started/theming/)

## List of Controls available
| controls | description |
| --------------- | --------------------------------------------------------------------------------------------------------------- |
| Header | Headings are defined with the `

to

` tags. Used as a title of the post, template and resume, etc. |
| Image Upload | Upload image with crop, zoom in, zoom out, reset, rotate, swap etc. features. |
| Autocomplete | The autocomplete is a normal text input enhanced by a panel of suggested relevant options as the user types. |
| Text field | Enable native inputs to be used within a form field. The styles such as the underline, floating label. |
| Text area | Enable native inputs to be used within a form field. The styles such as the underline, floating label. |
| Datepicker | The datepicker allows users to enter a date either through text input, or by choosing a date from the calendar. |
| Select | Allows the user to select only one option using dropdown. |
| Multi select | Allows the user to select one or more options using dropdown. |
| Radio button | Allows the user to select only one option from a group. |
| Checkbox button | Use multi select check box or single checkbox and captures boolean input with an optional indeterminate mode. |
| Button | Angular Material interactive button with a range of presentation options. |
| Paragraph | Paragraphs are the building blocks of papers. |
| Divider | Create a horizontal or vertical line styled with a Angular Material theme |
| Slide toggle | Is an on/off control that can be toggled via clicking and draggable switch. |
| Grid | Configure bootstrap’s grid system uses a series of containers, rows, and columns to layout and align content. |
| GPS | Add google map key in [index.html](https://github.com/asoftwareworld/ASW-Form-Builder/blob/master/src/index.html) file to use GPS feature.|
| QR Code | ASW QR Code library for generating QR Code for Angular projects. [Readme](https://github.com/asoftwareworld/asw-qr-code/blob/main/README.md) file to use feature.|
| Signature | This control allow for digital signature and display the result. (Uses canvas & fabric.js).|
| Image Drawing | This control allow to draw on Image and display the result. (Uses canvas & fabric.js).|

## Browser Support

| ![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) |
| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
## [Report a bug](https://github.com/asoftwareworld/ASW-Form-Builder/issues)
We use GitHub Issues as the official bug tracker for the ASW Form Builder. Here are some advices for our users that want to report an issue:

1. Make sure that you are using the latest version of the ASW Form Builder.
2. Providing us reproducible steps for the issue will shorten the time it takes for it to be fixed.
3. Some issues may be browser specific, so specifying in what browser you encountered the issue might help.

## Technical Support or Questions
If you have questions or need help please email `[email protected]`

## License
ASW License (A Software World)

## Social Media

Twitter:

LinkedIn:

Facebook:

(https://github.com/asoftwareworld/ASW-Form-Builder-Pro)

**Love ASW Form Builder? Give our repo a star :star: :arrow_up:.**