Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Making a Required field conditional on what radio button selection has been made

(1) ShareShare
ReportReport
Posted on by 4
Very new to Power Apps so probably silly question.
 
I have a set of required fields in my power app, six in total.
 
However I only want some of the six to be 'required' based on the selection of a preceding radio button (only two options which are Product / Journey).
 
At the moment the display of the required items works properly based on selection. So if I select 'Journey' only the journey relevant 'required' fields are displayed to the user.
 
However, when the form is saved, the SharePoint list shows errors saying the hidden fields are missing data (which is true, but it doesn't matter as they aren't relevant for Journeys, that's why they are hidden when Journey is selected).
 
How would I make it so that when the radio button selection is made, the non visible data cards 'required' status is ignored (and not just hidden from view)?
 
Visible formula is - If(DataCardValue22.Selected.Value="Journey",true,false)
 
Required formula is - If(DataCardValue22.Selected.Value="Journey",true,false)
 
What I'd like is if the selected value is 'Product' (not Journey) then this data card should no longer be required.
 
Hope that makes sense... I suspect I probably I need to modify the 'required' field formula somehow...
 
many thanks
Categories:
  • GL-25071322-0 Profile Picture
    4 on at
    Making a Required field conditional on what radio button selection has been made
    Hi Mike, many thanks, that makes sense, I'll give it a go.
     
    What I'm trying to achieve is that they are only necessary on the SharePoint depending on which of the two options are selected on the Power App form radio button.
     
    So of the six fields (columns) on the SharePoint,
    • if we select 'Journey' only four of the six are required on SharePoint.
    • if we select 'Product' only five of the six are required on SharePoint.
     
     
     
     
  • Mike2500 Profile Picture
    1,247 Super User 2024 Season 1 on at
    Making a Required field conditional on what radio button selection has been made
    To clarify, are the fields required in the sharepoint list? If so, you'll need to set them to optional there, and handle the dynamic required in only the form. 

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,635 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard