cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SandraAkujobi
Post Partisan
Post Partisan

Dark borders not visible on clicked button

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.

when the start by clicking on the page you see the dark borderswhen the start by clicking on the page you see the dark bordersOnce you start working on the page the border disappearsOnce you start working on the page the border disappears

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

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.

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

Hello @SandraAkujobi,

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.

Set(varSelectedDay, Self.Text)

 

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:

Set(varSelectedDay, Blank())

 

Hope this helps!

Joel

eka24
Super User
Super User

You can follow theses processes;

OnSelect of the button, set a variable;

Set(selectedbutton,true)

 

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.

to clear the variable where exactly should I put that formula. 

Anonymous
Not applicable

Hi @SandraAkujobi,

 

The OnSuccess property of your form would be a good spot

 

Joel

 

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.

Anonymous
Not applicable

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

 

Joel

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.

Screenshot (269).png

Anonymous
Not applicable

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.

Thank so much that worked out well.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (1,608)