I have buttons on the top of my form that represents the days of the week so that an employee can click on the relevant day that they want to fill out, I darken the borders of each buttons for when they click on a particular button they know which they they are filling out but when they want to actually fill out the form the dark borders disappear. How do I keep the dark borders from disappearing.
Solved! Go to Solution.
Don't worry about adding a number to the end of the variable name. The same variable can be used for all buttons. That way you only need to reset one variable to clear all black borders.
You could consider using a variable for this.
Set a variable on each of your buttons. You could do this by using the same formula for the OnSelect property on all buttons.
Then set the following formula for the BorderColor property on each of your buttons:
If(varSelectedDay = Self.Text, Black, Self.Fill)
Finally, you could clear the variable when you submit the form by setting the variable to blank:
Hope this helps!
You can follow theses processes;
OnSelect of the button, set a variable;
Then in the BorderColor property;
If(selectedbutton, Black, Green)
I would rather suggest you use the formula on the Fill property.
But if your preference is the border, that is fine.
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
I've done it all and it's still showing the same outcome like before. I've set a variable for all buttons but nothing seemed to change. when I click on a field on the form the dark border still disappears , not when I click onto another day button.
That's unusual! Could you please share with us the formula you use on your BorderColor property for your buttons?
Also check your other Border-related properties to see if any other formulas are affecting it
This is the formula used for all the buttons, I put a number after each of the days, so Monday is VARSelectedDay1 and for Tuesday would be VARSelectedDay1 and so on till the end of the week.
Below is an image that displays that.
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.