I’m building a complex form and attempting to use the tabs display control. It’s generally working, but I’d like to variably load a page in one of the tabs based on a variable and don’t see a way to accomplish this with the UI. Has anyone found a way to accomplish this?
Hello @rikro, check if these steps can help you!
- Add all the form elements that you want to display on different tabs. Place them outside the “Tabs” control for now.
- Drag and drop the “Tabs” display control onto your form.
- Inside each tab, add a GroupBox control (or any other container control) to act as a container for the elements you want to load conditionally.
- For each container (GroupBox) inside a tab, set the “Visibility” property to “False” initially. This will hide the content until you decide to show it based on your condition.
- In the “Properties” panel, select the form element that you want to use as a condition to load a specific tab. For example, if you have a Dropdown that allows the user to select different options, use its “Selected Value” property.
- Create an event handler for the form element’s “Value Changed” event.
- Inside the event handler, use an “If” activity to check the value of the condition. Depending on the condition, set the “Visibility” property of the appropriate container (GroupBox) inside the tab to “True” or “False”.
Cheers!!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.