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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Conditional to change ...
Power Apps
Answered

Conditional to change Display Mode of TextInput

(2) ShareShare
ReportReport
Posted on by 818
First post on the new forum yay!
For my sharepoint list form app I have a column that currently auto-populates from a PowerAutomate flow. But it can happen that this flow will return "0" instead of another number. Right now the Displaymode of said TextInput is View, so user cannot edit it. However, for these cases that we end up with a 0, I need the possibility of user input into this Textbox. I got a really complex formula with lots of IFs that could work, but Powerapp gave an error of circular referene (of course, it would be constantly be checking if the text is 0 and allow to edit). Or, a simple conditional like this:
If(
    Value(DataCardValue7.Text) = 0 && !IsBlank(ComboBox6_2.Selected.Value);
    DisplayMode.Edit;
    DisplayMode.View
    )
I added the && to have more conditionals, thought that would fix it. But this doesn't work. As soon as user starts writing, Textinput goes to viewMode. Which makes sense, as the conditional Value(DataCardValue7.Text) = is not being met.
 
I also thought about changing the onselect property of the textinput, but this didn't do much either. Or maybe I didn't know how to set it properly.
Anyway... Any ideas? Really appreciate input in advance :)
 
 
Categories:
I have the same question (0)
  • Verified answer
    KeithAtherton Profile Picture
    3,705 Most Valuable Professional on at
    Hey. Instead of checking the input control value, what happens if the code checks the record column value like this?:
     
    If(
        Value(ThisItem.MyValue) = 0;
        DisplayMode.Edit;
        DisplayMode.View
    )
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard