Set gridCell value in Quick Edit with javascript

Hi!

How can I set the cell value in Quick Edit with javascript?

I have a custom webpart page, where I save the "Project Name" in cookie (Project Name comes from a DropDown filter webpart), but I can't found solution how can I set cell value if I add new item in Quick Edit.

My goal is, If I add new task in quick edit, than the project name field fill automatically.

Please help!

Thanks,

Mykie

January 31st, 2015 1:24pm

Hi Mykie,

According to your description, you might want to set value to a cell dynamically when in Quick Edit view.

Unlike the normal HTML input control, the cell in the Quick Edit view is generated and will be changed dynamically based on user input, whats more, it only accepts keyboard input, the value set by JavaScript would not be recognized by the internal logic of the Quick Edit view.

As a workaround, as your requirement is setting a field value dynamically based on the values of other fields, I would suggest you create a workflow to do the job instead. Workflow can be triggered after the item added to the list, which should be able to meet your requirement.

A demo about how to create a SharePoint Designer workflow to set a field value for your reference:

http://blogs.msdn.com/b/workflows_for_product_catalogs/archive/2012/11/02/create-a-simple-workflow-that-reads-from-and-writes-to-a-product-catalog.aspx

Best regards
Free Windows Admin Tool Kit Click here and download it now
February 2nd, 2015 2:04am

try these links:

http://blogs.msdn.com/b/workflows_for_product_catalogs/archive/2012/11/02/create-a-simple-workflow-that-reads-from-and-writes-to-a-product-catalog.aspx

spdevlab.com/2013/08/26/custom-field-type-for-sharepoint-2013-custom-quick-edit-mode-implementation/

http://zimmergren.net/technical/sp-2013-using-the-spfield-jslink-property-to-change-the-way-your-field-is-rendered-in-sharepoint-2013

http://spdevlab.com/2013/06/27/custom-field-type-for-sharepoint-2013-custom-quick-edit-mode-rendering/

http://www.c-sharpcorner.com/UploadFile/sagarp/js-grid-control-sharepoint/

http://sharepoint.stackexchange.com/questions/98062/hiding-controls-from-listview-quick-edit-mode

--------------------------------------------------------------------------------------------------------------------------------------

Please mark answer as correct if it is correct else vote for it if you find it useful Happy SharePointing


February 2nd, 2015 2:43am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics