Related Item on Edit Form
Posted: 18 Jun 2018
Good Afternoon,
I have a related items control on a edit form and am experiencing the following issue: -
The list the related item Points to is called "Invoices List", we have used SP Forms to replace the standard forms for this list and as we do not require a Display Form to ever be viewed we have added a HTML divert on to Display Form as follows
With CDATA set to false.
We have used this in a lot of places across our site and it works successfully, however all previous places have been on Display Forms. On this Edit Form we are having an issue where if we open an item directly from the Invoices List the redirect works fine. However if we try to open that same item from the Related Item Control on the Edit Form we just get a small blank rectangle as if no form exists (see attachment). This occurs if we click on the Item Title or if we click the ellipsis and click View Item, if however we click the ellipsis and click Edit Item we are then taken to the Edit Form ( fd_Item_EditForm.aspx ). If I check in the console I get the following errors. I have tried removing and re-adding the Related Item Control, and I have used SP Forms to Reset the Invoice List Display Form and then re-added the redirect HTML script but nothing seems to work.
Any help very much appreciated.
I have a related items control on a edit form and am experiencing the following issue: -
The list the related item Points to is called "Invoices List", we have used SP Forms to replace the standard forms for this list and as we do not require a Display Form to ever be viewed we have added a HTML divert on to Display Form as follows
Code: Select all
<script type="text/javascript">
fd.openForm('fd_Item_EditForm.aspx');
</script>
We have used this in a lot of places across our site and it works successfully, however all previous places have been on Display Forms. On this Edit Form we are having an issue where if we open an item directly from the Invoices List the redirect works fine. However if we try to open that same item from the Related Item Control on the Edit Form we just get a small blank rectangle as if no form exists (see attachment). This occurs if we click on the Item Title or if we click the ellipsis and click View Item, if however we click the ellipsis and click Edit Item we are then taken to the Edit Form ( fd_Item_EditForm.aspx ). If I check in the console I get the following errors. I have tried removing and re-adding the Related Item Control, and I have used SP Forms to Reset the Invoice List Display Form and then re-added the redirect HTML script but nothing seems to work.
Any help very much appreciated.