Parent - Child relationship - Expression for Open List Form
Original Post by Fprieto (Imported from Ardevia Forum)
Hello.
Can anyone give a expression example of how to use the Query in action Open List Form in order to be able to do Parent - Child relationship between two list?
I know that is possible to pass parameters and use them in the fields of the new form, but as I'm not programmer I don't know how to do it. It would be great to have an example as a reference to start.
Thanks in advance
-
Original Post by Andrii Katsiubka (Imported from Ardevia Forum)
If I correctly understand you want to pass values from one form to another new form.
Suppose we have list A which contains fields:- Name
- Surname
and Contact list with fields:
- First Name
- Last Name
And suppose we want to set Name as First Name and Surname as Last Name on new form of Contacts list.
In this case we need to define Additional Query String for Open Form Action in following format:Code:
name=[[Name]]&surname=[[Surname]]
Then we need to configure New Form of Contacts list.
In design mode open Behavior tab and in "On form load Actions" click Edit button and add "Set form field action" for every parameter.
e.g for "name" parameter and "First Name" field:- add "Set form field action",
- set Form field value to "First Name"
- set next expression for value
- Code:
[[@Page.GetQueryString("name")]]0
Please sign in to leave a comment.
Comments
1 comment