...
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; |
...
} } |
</pre>For more information about using rules this way, see the [[Rules_Examples#Security_Subject_Information | Security Subject]] topic topic in the Rules Examples section.