cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
grifted5150
Frequent Visitor

Border Color Change Once you start typing in Text Input

I have border color of a Text Input field set to BorderColor Red based on:

BorderColor =If(PSNSReferralReasonDD_TR.Selected.Value = "A" Or PSNSReferralReasonDD_TR.Selected.Value = "B" And varReferralType <> "C",Red,RGBA(0,89,178,1))

 

and BorderStyle changed based on if BorderColor is red:

BorderStyle =If( AdjudicatorNotesTR.BorderColor = Red, BorderStyle.Dashed,Solid)

 

I would like to have the border color to change back to it's default once text is entered into the Text Input Field if that's possible.

 

Thank you!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
CNT
Super User
Super User

@grifted5150 

Please try the following,

If(IsBlank(Self.Text), 
	If(PSNSReferralReasonDD_TR.Selected.Value = "A" Or PSNSReferralReasonDD_TR.Selected.Value = "B" And varReferralType <> "C",Red,RGBA(0,89,178,1)),
	RGBA(0, 18, 107, 1)
)

 

Please remember to give a 👍 and accept my solution as it will help others in the future.

View solution in original post

3 REPLIES 3
CNT
Super User
Super User

@grifted5150 

Please try the following,

If(IsBlank(Self.Text), 
	If(PSNSReferralReasonDD_TR.Selected.Value = "A" Or PSNSReferralReasonDD_TR.Selected.Value = "B" And varReferralType <> "C",Red,RGBA(0,89,178,1)),
	RGBA(0, 18, 107, 1)
)

 

Please remember to give a 👍 and accept my solution as it will help others in the future.

grifted5150
Frequent Visitor

Excellent, works perfect thank you!

@grifted5150 

Glad to help!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

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.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,173)