cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
venka91
Super User
Super User

Multiple If or Switch to display the data in text boxes

my dental app has a attached screen. On clicking the image, the background color changes. Now i want to show in the text boxes which image boxes are clicked.

 

Example under Restoration the tooth list which selected should come (based on the image box Fill color), ABF, likewise Root canal : C, 'Restoration: T

 

Please help as i badly need help on this is to complete. I tried some nested if statement but they are not working .

 

Example, on Apply diagnosis button click : If(im_at.Fill = Red, Set(rest_at,"A"),If(im_at.Fill = Yellow, Set(root_at,"A"),If(im_at.Fill = Black,Set(extr_at,"A"),
If(im_bt.Fill = Red, Set(rest_bt,"B"),If(im_bt.Fill = Yellow, Set(root_bt,"B"),If(im_bt.Fill = Black,Set(extr_bt,"B")))))));

 

and in the text property of Restroration input giving this as rest_at & rest_bt & rest_ct

text property of Root canel input giving this as root_at & root_bt & root_ct

 

in this way this will be easy for me to store the values of text input in sharepoint list.

But unfortunately i do not know where i am going i am not getting the desired result.

 

Please help.

16 REPLIES 16
RandyHayes
Super User
Super User

@venka91 

Are you working with an existing record in the list or a new record?

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

This patient has other diagnosis details and dental is one part. When I patch a patient record , this tooth details also should go the list along with other details.

RandyHayes
Super User
Super User

@venka91 

Well, it's not really providing me a lot of information as to how you are storing the information, but for the most part with this, you are just simply storing the values in the Text controls into the appropriate record column.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

I will test this and let you . I really thankful to the help you provided and handholding towards solution

RandyHayes
Super User
Super User

@venka91 

Sure thing, give it a go and see where you get.  Post back with issues.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Thank you so much ... this is worked perfectly. I will be very thank full to your for this help ever and with patiently teaching this.

Thank you so much this worked perfectly

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.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

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 (4,244)