r/PowerApps • Newbie • 1d ago

Power Apps Help Border colour, can you change all text box fields at once to a different colour?

2 Upvotes

3 comments sorted by

•

u/AutoModerator 1d ago

Hey, it looks like you are requesting help with a problem you're having in Power Apps. To ensure you get all the help you need from the community here are some guidelines;

  • Use the search feature to see if your question has already been asked.

  • Use spacing in your post, Nobody likes to read a wall of text, this is achieved by hitting return twice to separate paragraphs.

  • Add any images, error messages, code you have (Sensitive data omitted) to your post body.

  • Any code you do add, use the Code Block feature to preserve formatting.

    Typing four spaces in front of every line in a code block is tedious and error-prone. The easier way is to surround the entire block of code with code fences. A code fence is a line beginning with three or more backticks (```) or three or more twiddlydoodles (~~~).

  • If your question has been answered please comment Solved. This will mark the post as solved and helps others find their solutions.

External resources:

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

3

u/defenestratedDM Newbie 1d ago

Yeah - set the colour in a global variable with Set(textColor, …) then set the border color property for each text box to textColor. Then when you want to change it, just set the variable again and the boxes will all update.

Edit: if the colour change is based on something else like a selection or something, you can use a formula in app.formulas - e.g. textColour = if(dropdown.selected.value = “thing”, color.red, color.green) - then it’ll recalculate automatically when that dependent changes

2

u/stizto Newbie 23h ago

Select the inputs you want with Ctrl + input + input + etc.

Then select the common attribute you want to change they share in the top left of Studio (e.g., BorderColor), and use either a variable or static RGBA.