cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Christy_Roach
Advocate II
Advocate II

Require a question to be answered based on a previous yes answer

I really feel like this should be easy.  I've built it into forms before and am kicking myself because I can't get it to work in the one I'm trying to build right now. I've looked through the database and tried what is out there but it just doesn't work for me.  Hoping someone can help without too much trouble.

 

I have a field that says "Is this project related to an event?"  DataCard23 and I've made it a yes/no toggle.  I have several subsequent questions that are required to be answered, if the answer to "Is this project related to an event?" is "yes".  Everything I try is giving me an error.  I have tried:

 

If(DataCardValue23.Selected.Value = "Yes", true,false) which is what the forum says but is that really required since it's a Boolean?

 

I've also tried, 

("Yes" in DataCardValue23.Selected.Items.Value)

 

Can anyone help me with this?  

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @Christy_Roach ,

With a Boolean value, the possible values are true and false, not "Yes" and "No"

All you actually have to put is

DataCardValue23.Selected.Value

as if true, will return a true value to your formula (you did not include the whole formula)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @Christy_Roach ,

With a Boolean value, the possible values are true and false, not "Yes" and "No"

All you actually have to put is

DataCardValue23.Selected.Value

as if true, will return a true value to your formula (you did not include the whole formula)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

WarrenBelz
Super User
Super User

Hi @Christy_Roach ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,270)