QuestionQ211

VerifiedUiPath Apps

A developer must create dynamic labels for the Switch elements in a UiPath App. The page that stores these elements is named PageOfficeDetails.

How can the developer make the labels dynamic so that they reflect the user’s selection for the Wi-Fi enabled switch while using the App, while keeping the App as lightweight as possible?

Question Image

Explanation

A Switch Label can use an expression that is re-evaluated when the referenced control value changes. Controls are referenced through their containing page, so PageOfficeDetails.SwitchWiFiEnabled.Value supplies the switch state; the conditional expression renders YES for true and NO otherwise. Reusing the existing Switch label avoids adding auxiliary labels or duplicate controls.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!