Bug with readOnly properties
SP2013, last CU + Forms Designer Client 3.1.4
______________________________________________
1. create library with document set content type. Add text field "Test".
2. Open forms designer and create new form with button:
3. create new list item and click on button
4. open new item - field "Test" is empty!
______________________________________________
1. create library with document set content type. Add text field "Test".
2. Open forms designer and create new form with button:
Code: Select all
fd.field('Test').value('testtesttest');
fd.field('Test').readonly(true);
4. open new item - field "Test" is empty!
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear PSB,
This is not really a bug, it's just one of SharePoint quirks and how it processes forms. If the field is set to readonly, SharePoint considers field inactive and empty on submit, so you just need to manually set all readonly fields to editable when you submit the form, just add this to JS editor:
More about this here - https://spform.com/javascript-framework ... ynamically
This is not really a bug, it's just one of SharePoint quirks and how it processes forms. If the field is set to readonly, SharePoint considers field inactive and empty on submit, so you just need to manually set all readonly fields to editable when you submit the form, just add this to JS editor:
Code: Select all
fd.onsubmit(function () {
fd.field('Test').readonly(false);
return true;
});
Cheers
-
- Information
-
Who is online
Users browsing this forum: No registered users and 14 guests