Is it possible to pre select a filter field in Related Items edit form

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
lijupnandanan
Posts: 16
Joined: Mon Apr 11, 2016

11 Oct 2016

Hi,
In my List 1's Edit form I have Related Items(Say List 2). WorkOrderNo is my filter column. Is it possible to pre select the WorkOrderNo in New Form of Related List ( List 2) ? The related Items present only in Edit form. Thus the edit form of List 1 contains the workorderno. Can I pass this to Related list (List 2)'s new form?

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

12 Oct 2016

Sure, you can retrieve a field value from the parent form via JavaScript:

Code: Select all

var v = window.top.fd.field('WorkOrderNo').value()
Then pass it to the new form's field:

Code: Select all

fd.field('FieldName').value(v)

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests