0

Would like to build a WebPart which will display an HTML form(allow the users to add the data rows as many as required) and will insert the data into the SharePoint list on the submit (based on http://feedbackWP.codeplex.com)

enter image description here

Add Row should bring another row as

enter image description here

On Submit, I should be able to fetch all the values and update the corresponding SharePoint 2010 List.

What would be the best way to achieving this? Can I use something like Grid or should I build my own HTML components and take care of the repeating?

Note: Field value of Code should be brought from the another List.

5
  • Adding a row is quite easy in InfoPath forms, if you have an option.. use InfoPath.. Also you can have multiple data sources so it won't be an issue Commented May 5, 2014 at 18:16
  • Infopath multiple rows get added as a single row to the list (stored in xml), so not useful in this situation.
    – Aboba
    Commented May 5, 2014 at 18:28
  • Infopath has been deprecated. Here Commented May 5, 2014 at 18:31
  • Just because it is deprecated doesn't mean its unusable for the forseeable future. XML based web services are deprecated but still usable in 2013. Expect InfoPath to be around for about 10 more years. Commented May 5, 2014 at 19:48
  • does it mean that we may built the Infopath form which may submit multiple list entries at once? At least in this case, does not it save the info as .xml file as multiple list entries are expected? Commented May 5, 2014 at 20:17

2 Answers 2

1

I would use Knockout JS to bind your inputs and jQuery to submit/create SPList items.

here is an example of knockout dynamic row binding:

http://knockoutjs.com/examples/gridEditor.html

Personally i try to stay away from SPServices and rather use OOB JavaScript api's.

Infopath is almost dead, i wouldn't invest my time creating forms etc with it.

0

Your best bet to do this is to code something in JQuery using SPServices to call the client side object model. Jquery can easily add the repeating functionality to the form and each "row" can be submitted to the list individually using SPServices calls.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.