nerdexam
Microsoft

PL-900 · Question #232

PL-900 Question #232: Real Exam Question with Answer & Explanation

The correct answer is A. formula. In Power Apps canvas apps, a formula (using Power Fx) is used to dynamically set control properties like Fill color based on user input. You would set the Fill property of the input control to a conditional formula such as: If(Value(TextInput.Text) >= 2 && Value(TextInput.Text) <

Submitted by fatema_kw· Apr 18, 2026Demonstrate the capabilities of Power Apps

Question

You are creating a canvas app to enable users to order tickets. You create an input field for users to input the number of tickets to order. Users must order a maximum of four tickets and a minimum of two tickets. If a user enters a number except 2, 3, or 4, the input field must display in red. If a user enters the numbers 2, 3, or 4, the input field must display in green. You need to color the input field based on the user input. What should you use?

Options

  • Aformula
  • Bgallery
  • Cconnector
  • Dcalculated column

Explanation

In Power Apps canvas apps, a formula (using Power Fx) is used to dynamically set control properties like Fill color based on user input. You would set the Fill property of the input control to a conditional formula such as: If(Value(TextInput.Text) >= 2 && Value(TextInput.Text) <= 4, Green, Red). This evaluates the entered value at runtime and applies the appropriate color. A gallery displays collections of records, a connector integrates external data sources, and a calculated column is a Dataverse/Excel concept for deriving values in a table, none of which control UI styling dynamically.

Topics

#Canvas app#Conditional formatting#Power Apps formulas#Input control

Community Discussion

No community discussion yet for this question.

Full PL-900 Practice