cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stapes
Impactful Individual
Impactful Individual

How do I set a TextInput field to a blank?

I am trying to display the contents of this field, or blank if the field is empty. This does not work - and leaves the old data showing:

 

If(
    IsBlank(First(InspectionDetailsCollection).Notes) || IsEmpty(First(InspectionDetailsCollection).Notes),
    "",
    First(InspectionDetailsCollection).Notes
)

This blanks it out with a space, but then is an invalid input when the form is submitted:

If(
    IsBlank(First(InspectionDetailsCollection).Notes) || IsEmpty(First(InspectionDetailsCollection).Notes),
    " ",
    First(InspectionDetailsCollection).Notes
)

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

@stapes 
Could you please show a capture from InspectionDetailsCollection?

 

Have you tried with Blank() instead of "" or " "?

View solution in original post

4 REPLIES 4
EAguilera
Helper I
Helper I

Hi @stapes,

Are you using this formula in the Default property?

stapes
Impactful Individual
Impactful Individual

@EAguilera  - yes

@stapes 
Could you please show a capture from InspectionDetailsCollection?

 

Have you tried with Blank() instead of "" or " "?

stapes
Impactful Individual
Impactful Individual

no pallets.png

@EAguilera  - here you go!

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (4,693)