Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8632537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:22:00+00:00 2026-06-12T09:22:00+00:00

NOTE I am sorry if this is wrong place to post plugin information That

  • 0

NOTE
I am sorry if this is wrong place to post plugin information That I have developed. I believe this will help.

I am wondering if there any way to to set form fields automatically based on object.
I means if I have a object

  user = {
    text: ['text fields1', 'text fields2'],
    radio: 1,
    checkbox:false,
    select: '4'
}

and a form

 <form>
<input name='user.text.0' type='text' />
    <input name='user.text.1' type='text' />
<input name='user.radio' type='radio' value='1'/>
<input name='user.radio' type='radio' value='2'/>
<input name='user.checkbox' type='checkbox' />
<select name='user.select'>
<option value='1'> 1 </option>
<option value='2'> 2 </option>
<option value='3'> 3 </option>
<option value='4'> 4 </option>
</select>
</form>

Is there any JavaScript library which automatically fill all the form fields?

I also want a method which return form as an object.

I means if I call that method it should return

     {
    text: ['text fields1', 'text fields2'],
    radio: 1,
    checkbox:false,
    select: '4'
  }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:22:01+00:00Added an answer on June 12, 2026 at 9:22 am

    I have created a small JavaScript library.
    jsfiddle

    it has two methods FormManager.setData(Element, data) and FormManager.getData(Element).
    You can set form fields using FormManager.setData and you can get form fields data as a object using FormManager.getData.
    it uses fields name to create object keys and wise-versa.

    I developed this so that I should not read form fields one by one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

note: I am sorry if this is a stupid question! I have this program
NOTE: This is a followup to my question here. I have a program that
(Note - this is a re-post as my first question got posted under wrong
Firstly, sorry about the wall of text. I have the following schema. Note that
NOTE: sorry as this is not a programming question but i am not aware
Note, this is not a duplicate of .prop() vs .attr() ; that question refers
Note: Sorry this is not exactly a programming question; please migrate it if there
I have this code: if ($('#txtEdit').val == '') { window.parent.$('#note' + appid + dbid).html('<img
(Note: This is not a question about what is the best way with code
Note: Not sure if this is the right stack, please tell if I should

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.