cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
chucksta
Level: Powered On

Auto Popluate a dropdown field in my form to paste custom entry to a field and color match the field

Howdy All,

 

 

Currently I have a support intake form that I am currently building for my company and we have a Sharepoint list that has a:

 

Screenshot 1

Recovery Time(RTO) dropdown field as seen below:

rto.jpg

 

I also have a "Critical"  field on the form that is currently a text field which I want to make this field autopopulate which ever dropdown item a user chooses from the Recovery Time Object (RTO) field and also color code based off the selection from the RTO field.

 

Screenshot 2

RTO Color Field:

rtocolorcode.PNG

 

Example of what I an requesting:  if a user pick option "A" from RTO dropdown in the screenshot 1. above, it then places the selection RTO Rating in the Critical Field in red as High (Critical) as seen screen shot 2 above.

 

 

Can anyone help point me in the right direction to get this done.

Your help is surely appreciated and thanks in advance.

3 REPLIES 3
Highlighted
Community Support Team
Community Support Team

Re: Auto Popluate a dropdown field in my form to paste custom entry to a field and color match the field

Hi @chucksta ,

Do you want to auto-populate the "Critical"  field in your Edit form based on the selected item in your Recovery Time(RTO) dropdown box, and color the text in corresponding color?

 

I have made a test on my side, please take a try with the following workaround:5.JPG

 

4.JPG

Set the Default property of the Critical Text Input box to following:

ComboBox1.Selected.Value

On your side, you may type:

RTOComboBox.Selected.Value

Set the Color property of the Critical Text Input box to following:

If(
    "0-8 Hours" in ComboBox1.Selected.Value,
    RGBA( 255, 0, 0, 1 ),
    "8-24 Hours" in ComboBox1.Selected.Value,
    RGBA( 255, 255, 0, 1 ),
    "1-3 Days" in ComboBox1.Selected.Value,
    RGBA( 50, 205, 50, 1 ),
    "3-10 Days" in ComboBox1.Selected.Value,
    RGBA( 0, 255, 127, 1 ),
    "10+ Days" in ComboBox1.Selected.Value,
    RGBA( 100, 149, 237, 1 )
)

Please check the following GIF screenshot for more details:Test.gif

 

In addition, if you want to fill color within the Critical Text Input box, please consider set the Fill proeprty of the Critical Text Input box to following formula:

If(
    "0-8 Hours" in ComboBox1.Selected.Value,
    RGBA( 255, 0, 0, 1 ),
    "8-24 Hours" in ComboBox1.Selected.Value,
    RGBA( 255, 255, 0, 1 ),
    "1-3 Days" in ComboBox1.Selected.Value,
    RGBA( 50, 205, 50, 1 ),
    "3-10 Days" in ComboBox1.Selected.Value,
    RGBA( 0, 255, 127, 1 ),
    "10+ Days" in ComboBox1.Selected.Value,
    RGBA( 100, 149, 237, 1 )
)

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
chucksta
Level: Powered On

Re: Auto Popluate a dropdown field in my form to paste custom entry to a field and color match the field

Kris,

 

You have the right Idea in regards to the plan but just a bit off.

I want the Critical field to populate like below:

 

So for instance, if I select 0-8 Hours, the critical field will auto populate tthe text below for that corresponding RTO selection, so it will autopopulate "High Critical" and would color code it in Red. And if I select 8-24 Hours, it will autopopulate the text "Elevated".

rtocolorcode.PNG

 

And so on and soforth for the other selections.

 

 

I wish it could make the whole field turn the color of the selection king of like high light thewhole field in the sleection in the corresponding collors but not sure if that could be done, so the critical field would look like this:

 

2019-09-11_12-19-07.png(This is just a paint image to show what I want but if it cant be done, I am fine with that.) 

 

 

Community Support Team
Community Support Team

Re: Auto Popluate a dropdown field in my form to paste custom entry to a field and color match the field

Hi @chucksta ,

Do you want to auto-populate the Rating RTO text value ("High Critical", "Elevated", ...) into the Critical field Text Input box?

 

I have made a test on my side, please take a try with the following workaround:

Set the Default property of the Critical Text Input box to following:

If(
    "0-8 Hours" in ComboBox1.Selected.Value,
    "High (Critical)",
    "8-24 Hours" in ComboBox1.Selected.Value,
    "Elevated",
    "1-3 Days" in ComboBox1.Selected.Value,
    "Moderate",
    "3-10 Days" in ComboBox1.Selected.Value,
    "Low-Moderate",
    "10+ Days" in ComboBox1.Selected.Value,
    "Low"
)

Set the Fill proeprty of the Critical Text Input box to following formula:

If(
    "0-8 Hours" in ComboBox1.Selected.Value,
    RGBA( 255, 0, 0, 1 ),
    "8-24 Hours" in ComboBox1.Selected.Value,
    RGBA( 255, 255, 0, 1 ),
    "1-3 Days" in ComboBox1.Selected.Value,
    RGBA( 50, 205, 50, 1 ),
    "3-10 Days" in ComboBox1.Selected.Value,
    RGBA( 0, 255, 127, 1 ),
    "10+ Days" in ComboBox1.Selected.Value,
    RGBA( 100, 149, 237, 1 )
)

 

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 48 members 4,583 guests
Please welcome our newest community members: