cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Conditional behavior - further action if specific response is selected

 

 

Hi All,

 

I developed a 'vehicle inspection app' that primarily consists of radio buttons and dropdowns. Items that need to be checked are listed, and the user should select whether the item is 'Operational' or 'Requires attention'. In case it 'requires attention' we need an additional section to appear, similar to the example shown below, which provides the option for further action:

  • Make a note
  • Send an email
  • Take a picture

 

I have tried to find examples or tutorials on the web, but have not found a solution to this. My questions are:

 

1. Would it make sense to display a new EditForm section (using the IF function) when 'requires attention' is selected - and to  display the same EditForm if 'requires attention' is selected in any of the quesitons? In that case, how would I track which item the submitted info refers to..

 

2. Has anyone done something similar and could share how this was done please?

 

Example.png

1 ACCEPTED SOLUTION

Accepted Solutions
bean
Continued Contributor
Continued Contributor

I suggest OnVisible for the screen:

 

Set(additionalSection, false)

 

Create that additional section, and go to the properties of each component/control and set the visible to

additionalSection  

 

OnSelect for your button 'NO, REQUIRES ATTENTION' : 

Set(additionalSection, true)

 

Optional - OnSelect for 'YES' button (To have the additional box dissappear):

Set(additionalSection, false)

 

In addition, if the screen isn't going to be changed, you could use UpdateContext() instead of Set(). 

 

Hope that helps!

Sean

View solution in original post

1 REPLY 1
bean
Continued Contributor
Continued Contributor

I suggest OnVisible for the screen:

 

Set(additionalSection, false)

 

Create that additional section, and go to the properties of each component/control and set the visible to

additionalSection  

 

OnSelect for your button 'NO, REQUIRES ATTENTION' : 

Set(additionalSection, true)

 

Optional - OnSelect for 'YES' button (To have the additional box dissappear):

Set(additionalSection, false)

 

In addition, if the screen isn't going to be changed, you could use UpdateContext() instead of Set(). 

 

Hope that helps!

Sean

View solution in original post

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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