Readonly Column Issue

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
ksertkaya
Posts: 87
Joined: Wed Nov 18, 2015

29 May 2017

Hi,

My column is readonly mode. When I Add new item in child table, page is reloading and this column is empty. How can I resolve this issue?

http://prntscr.com/fd9zqd
http://prntscr.com/fd9zew

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

29 May 2017

Hi,
Before the submission, you must enable all fields otherwise you will lost their values. Please, insert the code below into JS-editor:

Code: Select all

var submit = theForm.submit;
theForm.submit = function() {
	fd.field('FIeldName).readonly(false);
	return submit.apply(this, arguments);
};
Replace the 'FieldName' with the internal name of the readonly field.

ksertkaya
Posts: 87
Joined: Wed Nov 18, 2015

30 May 2017

Thank you very much Dmitry.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests