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 / PowerApps Display Mode
Power Apps
Answered

PowerApps Display Mode

(0) ShareShare
ReportReport
Posted on by 25

Hi, 

 

I am trying to make questions in my form mandatory. The issue I am facing is if somebody selects 'Very Satisfied' & 'Satisfied' as an option in the combo box, the text box does not appear but if they select any of the other options a text box appears to record why they are not satisfied. 

 

The initial combo boxes I have a formula in my Display Mode that checks if every combo box has a value / is not blank. But I want to make it so if they select: 

 

  • Neither Satisfied of Dissatisfied
  • Dissatisfied
  • Very Dissatisfied

The text box for 'reason why' becomes mandatory too. 

 

Display Mode button formula - If(!IsBlank(QualityOfHomeValue.Selected.Value) && !IsBlank(NeighbourHoodValue.Selected.Value) && !IsBlank(ListenActsValue.Selected.Value) && !IsBlank(ServiceByStockportHomesValue.Selected.Value) && !IsBlank(EasyToDealWithValue.Selected.Value) && !IsBlank(BuildingYouLiveInValue.Selected.Value) , DisplayMode.Edit, Disabled)

 

If I make the text boxes mandatory in this formula the Display Mode for the button would never change to Edit if they answered 'Very Satisfied' & 'Satisfied' which would not allow the user to continue as the formula is expecting a value in the text box. 

 

wardeee5_0-1635511077324.png

No text box selection.

wardeee5_1-1635511127317.png

Text box = visible.

 

Any help on this would be greatly appreciated.

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,927 Most Valuable Professional on at

    Hi @wardeee5 ,

    With() statement is only to save a heap of typing - on the Visible of the text box

    With(
     {
     wQual:QualityOfHomeValue.Selected.Value,
     wNH:NeighbourHoodValue.Selected.Value,
     wListen:ListenActsValue.Selected.Value,
     wService:ServiceByStockportHomesValue.Selected.Value,
     wDeal:EasyToDealWithValue.Selected.Value,
     wLive:BuildingYouLiveInValue.Selected.Value,
     wA1:"Neither Satisfied of Dissatisfied",
     wA2:"Dissatisfied",
     wA3:"Very Dissatisfied"
     },
     wQual= wA1 || wQual = wA2 || wQual = wA3 ||
     wNH= wA1 || wNH = wA2 || wNH = wA3 ||
     wListen= wA1 || wListen = wA2 || wListen = wA3 ||
     wService= wA1 || wService = wA2 || Service = wA3 ||
     wLive= wA1 || wLive= wA2 || wLive = wA3
    )

     

    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.

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @wardeee5 

     

    Set the Button display mode to (Sample only 3 values and I believe you can add more)

     

    If(
     !IsBlank(QualityOfHomeValue.Selected.Value) && (QualityOfHomeValue.Selected.Value in "Very Satisfied,Satisfied" || (!IsBlank(QualityOfHomeText))) && 
     
     !IsBlank(NeighbourHoodValue.Selected.Value) && (NeighbourHoodValue.Selected.Value in "Very Satisfied,Satisfied" || (!IsBlank(NeighbourHoodText))) && 
     
     !IsBlank(ListenActsValue.Selected.Value) && (ListenActsValue.Selected.Value in "Very Satisfied,Satisfied" || (!IsBlank(ListenActsText))) ,
     DisplayMode.Edit,
     DisplayMode.Disabled
    )

     


    Thanks,
    Stalin - Learn To Illuminate

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    I see @WarrenBelz responded while I was typing. 😀

     

    Please ignore mine

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @wardeee5 

     

    Along with @WarrenBelz visible response, here is the code for the Next button to set Display mode.

    With(
     {
     QOHV: QualityOfHomeValue.Selected.Value,
     NHV: NeighbourHoodValue.Selected.Value,
     LAV: ListenActsValue.Selected.Value,
     SBS: ServiceByStockportHomesValue.Selected.Value,
     ETW: EasyToDealWithValue.Selected.Value,
     BYL: BuildingYouLiveInValue.Selected.Value, 
     WA1: "Very Satisfied, Satisfied"
     },
     If(
     !IsBlank(QOHV) && (QOHV in WA1 || (!IsBlank(QualityOfHomeText))) 
     && !IsBlank(NHV) && (NHV in WA1 || (!IsBlank(NeighbourHoodText))) 
     && !IsBlank(LAV) && (LAV in WA1 || (!IsBlank(ListenActsText)))
     && !IsBlank(SBS) && (SBS in WA1 || (!IsBlank(ServiceByStockText))) 
     && !IsBlank(ETW) && (ETW in WA1 || (!IsBlank(EasyToDealText)))
     && !IsBlank(BYL) && (BYL in WA1 || (!IsBlank(BuildingYouText))),
     DisplayMode.Edit,
     DisplayMode.Disabled
     )
    )

     
    Thanks,
    Stalin - Learn To Illuminate

  • wardeee5 Profile Picture
    25 on at

    Thanks a lot guys, worked fine that!

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 342 Most Valuable Professional

#2
11manish Profile Picture

11manish 234

#3
Valantis Profile Picture

Valantis 187

Last 30 days Overall leaderboard