Section | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
...
|
...
|
The example below shows the parent Lodging-Meal Selections form and its two linked forms. Notice that the parent form and its linked forms initially all have the same name, but the linked forms are outlined by dashed lines rather than solid lines. Note also that the form displays three icons when you click on it, while the linked forms display only the remove icon.
...
When the flow runs, the first activity, CheckIn, is performed by a user with the Reservations role, so that user does not see the form's Guest Information tab, which is only visible to a user with the MaitreDHotel role.
[[Image:linked-forms_HiddenTabInActivity.gif]]
The next activity in the flow, ''DiningRoom'', is assigned to the ''MaitreDHotel'' role role, so that user sees the Guest Information tab.
[[Image:linked-forms_VisibleTabInActivity.gif]]
You can also use rules to show or hide parts of a form in an activity. For example you could use the rule below to show the Guest Information tab only when a MaitreDHotel role is using the form.
This rule is useful in a workflow where you want to make a the tab named Review visible only for the workflow activity named Manager Review.<pre>
Code Block |
---|
if (form.load) { |
...
if (_data.getParameter('flow.activity.name') == 'MaitreDHotel') |
...
{ GuestInformation.visible = true; |
...
}
} |
For more information about using rules this way, see the [[Rules_Examples#Security_Subject_Information | Security Subject]] topic topic in the Rules Examples section.