Press "Enter" to skip to content

Easily Convert Javascript Objects To HTML Forms | object2form

Object2form easily converts your javascript object into a complete HTML form with all the great modular code your framework or UI library requires.

convert object to formdata javascript, formdata to json, formdata append object json, convert form data to json online, convert object to formdata angular

Currently we support the following frameworks/libraries:

  • Angular (>2) with Bootstrap 4
  • Angular (>2) with Bootstrap 3
  • Angular (>2) with Angular Material
  • Angular (>2) with Semantic UI

How to make use of it:


<form (ngSubmit)="onSubmit(f)" #f="ngForm">

  <div class="form-group">
    <label for="name">name</label>
    <input type="text" class="form-control" id="name"
       ngModel name="name" #name="ngModel" required
       [ngClass]="{'is-invalid': name.invalid && name.touched}">
    <div class="invalid-feedback">Invalid value</div>

  <div class="form-check">
    <label class="form-check-label">
      <input type="checkbox" class="form-check-input" id="registered"
       ngModel name="registered" #registered="ngModel">

  <div class="form-group">
    <label for="age">age</label>
    <input type="text" class="form-control" id="age"
       ngModel name="age" #age="ngModel" required
       [ngClass]="{'is-invalid': age.invalid && age.touched}">
    <div class="invalid-feedback">Invalid value</div>
  <button type="submit" class="btn btn-primary">Submit</button>

convert js object to form data, Object2form Plugin/Github, typescript convert object to formdata, convert object to formdata react, object to formdata npm

See Demo And Download

Official Website(IdanCo): Click Here

This superior jQuery/javascript plugin is developed by IdanCo. For extra advanced usage, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published.