Is it possible to pre select a filter field in Related Items edit form
-
- Posts: 16
- Joined: Mon Apr 11, 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?
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?
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Sure, you can retrieve a field value from the parent form via JavaScript:
Then pass it to the new form's field:
Code: Select all
var v = window.top.fd.field('WorkOrderNo').value()
Code: Select all
fd.field('FieldName').value(v)
-
- Information
-
Who is online
Users browsing this forum: No registered users and 4 guests