cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dlprentice
Resolver II
Resolver II

How to disable "Text input" if value retrieved from data source is null/empty/blank.

We have ticket numbers that get assigned to request for change submissions. We don't want the text input field or the submit button to be editable/clickable  if the value that shows up exists from our SharePoint list. If nothing shows up we want the field to be editable, and the submit button to be clickable.

 

The name of our data source that contains the 'FootPrints Ticket Number' :

 

'Requests for Change'

 

The name of the input field:

 

InputField1

 

The name of the submit button:

 

FootprintsCreate

 

 

Screenshot 2021-02-12 142004.png

 

Screenshot 2021-02-12 142444.png

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@dlprentice 

You cannot set a value on a control like that in PowerApps.  PowerApps is a no code platform that derives its values on controls with formulas, just like Excel uses formulas to derive information in a cell.

 

For your TextInput1 control, set the DisplayMode property to:

   If(IsBlank(Parent.Default), Edit, Disabled)

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

3 REPLIES 3
RandyHayes
Super User III
Super User III

@dlprentice 

You cannot set a value on a control like that in PowerApps.  PowerApps is a no code platform that derives its values on controls with formulas, just like Excel uses formulas to derive information in a cell.

 

For your TextInput1 control, set the DisplayMode property to:

   If(IsBlank(Parent.Default), Edit, Disabled)

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

Thank you for also taking the time to explain the way values are derived. We were way over thinking how to accomplish this.

RandyHayes
Super User III
Super User III

@dlprentice 

Happy to help.  Yep, don't overcomplicate.  Keep it simple.  Drop the developer hat at the door and put on the Excel formula hat....PowerApps will be your best friend then. 😁

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,847)