Microsoft

PL-200 practice question 86

Microsoft Power Platform Functional Consultant · free question 86 of 309

Question

You have a canvas app that allows users to view, select, and purchase products. The app uses a Gallery control to display products and checkboxes that allow users to select products. When users select items from the product catalog, they move to a different screen to complete a purchase. Users must be able to clear all product selections when they click the button. You need to configure the button. What should you do?
  • A. Use the Reset(Control) formula and pass the gallery control as a parameter to the Reset formula.
  • B. Use the Reload(Control) formula and pass the gallery control as a parameter to the Reload formula.
  • C. Use the ForAll() function to iterate through each item of the Gallery and clear user selections.
  • D. Set the OnCheck value to populate a collection and the OnUncheck value to remove the item from the collection. Clear collection when the user selects the button. Correct

Explanation

Option D is correct because it involves using the OnCheck and OnUncheck properties of checkboxes to manage a collection that tracks selected products. Clearing this collection when the button is clicked effectively resets all product selections.

Need the theory? Learn it free in the PL-200 course on Godlike Academy

Practice the whole free set

PL-200 is a free exam: all 319 questions with instant feedback, plus Learn and Exam modes and PDF export, free.