Page 1 of 1

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

Posted: 11 Oct 2016
by lijupnandanan
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?

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

Posted: 12 Oct 2016
by Dmitry Kozlov
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)