web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / App based on Yes or No...
Power Apps
Answered

App based on Yes or No question: if the value is No in each question

(0) ShareShare
ReportReport
Posted on by 32
Hi
 
i am building an app to where user is prompt with few questions with yes or no on each question , if the value is NO for some the questions after form submission show values based on those selected NO, I have to show web links to the user after submission. Each question if the values is NO has multiple links which need to be shown: example scenario
 
user  selecting - no for question number 1 and question number 3
after submission - show values based on the no which user selected questions.
 
each  NO has multiple web links for each question 
 
datasource is coming from sharepoint list
 
is this possible? If so how
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    Hi @Zamil,
    You have not included any code used or the structure proposed, however you certainly could include the links in the question record, in a Multi-line Text Field with each link separated by a comma, then something like this if filtering a Gallery and putting the links in another gallery with the Items
    Ungroup(
       ForAll(
          Filter(
             YourQuestionGallery.AllItems,
             AnswerField = "No"
          ),
          Split(
             YourLinkField,
             ","
          )
       ),
       Value
    )
    and then OnSelect of the second gallery put
    Launch(ThisItem.Value)
     
    Please Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like
    Visit my blog
    Practical Power Apps    LinkedIn  
  • Suggested answer
    VASANTH KUMAR BALMADI Profile Picture
    322 on at

    Yes — this is absolutely possible in Power Apps, and it’s actually a very clean pattern once the data is structured correctly.

    The key is not to hard-code links per question in formulas, but instead let SharePoint drive everything.

    ✅ Recommended data structure (important)

    You should use two SharePoint lists.

    List 1 — Questions

    Column Type
    Title Question text
    Answer Yes/No
    QuestionID Number

    Example:

    QuestionID Title
    1 Do you have VPN access?
    2 Do you have admin rights?
    3 Have you completed security training?

    This list is used for your form / gallery.

    List 2 — QuestionLinks

    Column Type
    QuestionID Number
    LinkTitle Single line text
    LinkURL Hyperlink
    ShowWhenNo Yes/No

    Example:

    QuestionID LinkTitle LinkURL
    1 VPN setup guide https://...
    1 Request VPN access https://...
    3 Security training portal https://...
    3 Training FAQ https://...

    Each question can have multiple links.

    ✅ App logic flow

    1️⃣ User answers questions

    Use a gallery connected to Questions list.

    Each row contains:

    • Question text

    • Yes / No radio control

    Patch answers back to SharePoint.

    2️⃣ On Submit button

    After saving responses, build a collection of NO answers.

    ClearCollect(
        colNoQuestions,
        Filter(
            Questions,
            Answer = false
        )
    );
    

    3️⃣ Get links related to NO answers

    ClearCollect(
        colHelpfulLinks,
        Filter(
            QuestionLinks,
            QuestionID in colNoQuestions.QuestionID
        )
    );
    

    This automatically returns:

    • all links

    • for all questions answered NO

    4️⃣ Display links on result screen

    Create a gallery using:

    Items = colHelpfulLinks
    

    Inside gallery show:

    • LinkTitle

    • LinkURL

    ✅ Result behavior

    If user selects:

    • Question 1 → No

    • Question 3 → No

    Then gallery shows:

    • All links for Question 1

    • All links for Question 3

    Automatically.

    No formulas to maintain.

    ✅ Why this approach is best

    ✔ Unlimited questions
    ✔ Unlimited links per question
    ✔ Fully data-driven
    ✔ Easy to maintain in SharePoint
    ✔ No hardcoding
    ✔ Works with delegation
    ✔ Easy to extend later

    ❌ What not to do

    • ❌ Don’t use one column per link

    • ❌ Don’t hard-code URLs in Power Apps

    • ❌ Don’t use nested If statements

    • ❌ Don’t use Switch() per question

    Those approaches break immediately when requirements change.

    ✅ Optional enhancements

    You can also:

    • group links by question

    • show question text as section header

    • track which links were clicked

    • store submission history

    • reuse same structure for other surveys

    ✅ Final answer

    Yes — it is 100% possible.

    The correct solution is:

    1. Store questions in one SharePoint list

    2. Store links in another list mapped by QuestionID

    3. After submission, filter all questions answered NO

    4. Load and display all related links dynamically

    This is the same pattern used in compliance checklists, onboarding apps, and self-service portals.

  • Zamil Profile Picture
    32 on at
     
    how do i patch the answers back to sharepoint list, I have used a button on select  writes clear collect

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard