Power Apps Hack To Style All Form Controls In Seconds



This strange hack makes it possible to quickly update the style of all DataCardKeys and DataCardValues in a Power Apps form. Normally its simple to update multiple controls at once. Just select a group of controls then change the desired problem. But a Power Apps form makes it impossible to select multiple controls from different data cards…

…unless you use this Power Apps hack!

  1. Select the Power Apps form in the tree view
  2. Change the form layout property from vertical to horizontal
  3. Click the undo button
  4. Now all DataCardKeys and DataCardValues in the form are selected
  5. Use the Tree View search to quickly unselect either the keys or values
  6. Change any property of the remaining selected controls in one-click.



Let’s break this powerful tip down with a few helpful screenshots



Full Example: Style All DataCardKeys and DataCardValues In A Form



1. Select the Power Apps form in the Tree View

Start by selecting the whole form.



2. Change the form layout property from vertical to horizontal

Go to the right-pane, select the Layout dropdown and choose horizontal.



3. Click the undo button

This trick only works if we click the undo button in the top right corner. Pressing Ctrl+Z to undo does not have the same effect.



4. Now all DataCardKeys and DataCardValues in the form are selected

We can see multiple controls are selected inside each of the form’s data cards.



5. Use the Tree View search to quickly unselect either the keys or values

Hold the CTRL button to deselect each control. It’s super fast if we use Tree View search to show only the controls we want to deselect.



6. Change any property of the remaining selected controls in one-click.

Success. We can now make as many changes as we want to all the DataCardKeys or DataCardValues in the form.



Credit for originally finding this trick goes to Martin Achermann.





Questions?

If you have any questions about Power Apps Hack To Style All Form Controls In Seconds please leave a message in the comments section below. You can post using your email address and are not required to create an account to join the discussion.

Matthew Devaney

Subscribe
Notify of
guest
12 Comments
Oldest
Newest
Inline Feedbacks
View all comments
Eileen
Eileen
1 month ago

Best hack ever! Thank you for sharing it!

Daniel
Daniel
1 month ago
Reply to  Eileen

I agree, very handy when you have a form with some 50+ datacards or worse 100 or so

Daniel
Daniel
1 month ago

Hey Matt,

In step 3 you mentioned that pressing Ctrl+Z doesn’t have the same effect, I did that in the last hour and it looked like it worked for me. Is there anything that I may be missing even though it worked for me?

Cheers

Valerie Schaffer
Valerie Schaffer
1 month ago

Great hack! I wish it wasn’t needed, though.

Also, side note: while I like that we are seeing your face (it’s nice to put a face with a name), I miss your cat photos. Think we can have compromise and have both? 🐱

asdf
asdf
1 month ago

Unlocked Cards has Revive !
Great!Great!Great!

Craig Gregory
Craig Gregory
1 month ago

Matt this is awesome! I did find one thing might want to add at top of the blog. When you create a brand new canvas app and place your form control and then try this hack you must first save the app then go back in and the hack will work. Seems the undo doesn’t undo till its saved at least once.

Achi
Achi
29 days ago

Hi Matthew
Thanks for all of your great content.

I feel very honored that you linked my post as original source of this hack in your blog. 👍
However, it looks like you got something mixed up as I am not Alan, but Achi… 🙂
https://twitter.com/iamachi

Have a great day