Related Item Creation on Parent New Form Problem
Hi,
if I´m using your Code desc. here https://spform.com/documentation/relate ... gular-mode this works only for me if the parent List already has at least one Listitem.
If not (creating the first record in the parent list) the parent-id will not be set in the related Item New-Form (Dialog).
I´m using FD 3.1.5 with SPO
Thx for helping me.
if I´m using your Code desc. here https://spform.com/documentation/relate ... gular-mode this works only for me if the parent List already has at least one Listitem.
If not (creating the first record in the parent list) the parent-id will not be set in the related Item New-Form (Dialog).
I´m using FD 3.1.5 with SPO
Thx for helping me.
Hi!
So, I've checked it out, the Related Items functionality from the instruction below works fine, most probably you have some errors in the implementation.
Here is the list of the frequent errors can be encountered:
1) Check whether you replace ‘Parent’ with the internal name of the lookup field in the source in the JavaScript code snippets, here:
and here:
2) Check whether you switch CDATA property of the HTML-control to False.
Please try to make a brand new Related items implementation considering these subtle moments.
So, I've checked it out, the Related Items functionality from the instruction below works fine, most probably you have some errors in the implementation.
Here is the list of the frequent errors can be encountered:
1) Check whether you replace ‘Parent’ with the internal name of the lookup field in the source in the JavaScript code snippets, here:
Code: Select all
fd.populateFieldsInGrid($('.related-items'), {
Parent: '{CurrentItem}',
});
Code: Select all
if (window != window.top && window.top.fd) {
// the form is opened in a dialog from the parent form
var parentId = parseInt(window.top.GetUrlKeyValue('ID'));
if (parentId) {
// the form is opened from the Edit form
fd.field('Parent').value(parentId);
} else {
// the form is opened from the New form
$('#_fd_parent_temp > input').val(window.top.fd._tempParentId());
}
$('.parent-field').hide();
}
Please try to make a brand new Related items implementation considering these subtle moments.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 18 guests