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 / Hide Icon based on non...
Power Apps
Answered

Hide Icon based on non availability of text input in gallery

(0) ShareShare
ReportReport
Posted on by 71

Hi,

 

I have a text input "Txt_Ip_Data" and save button on same page. There is already a code written for onselect of save button which perform some other actions.

The text input is present in the gallery. I have a sharepoint list in which there is a column of input. 

I am doing below task:

If a particular column in sharepoint list displays text then in gallery text input "Txt_Ip_Data"  appears.

If this text input "Txt_Ip_Data" is empty, We should disable the save button popup. Only when all text input "Txt_Ip_Data" is filled with value then save button should be enabled.

I am writing below code in displaymode of save button-

If(
LookUp(Gallery_Check_List_Details.AllItems,Equipment_Name=Var_Eqp_Selected_Cond,Check_Type) = "Input" And (IsBlank(Txt_Ip_Data.Text)),DisplayMode.Disabled,

DisplayMode.Edit)

 

but this code is working only when all text input "Txt_Ip_Data" in gallery items is empty. If even a single text input "Txt_Ip_Data" is filled with value, the save button is getting enabled.

Save button should be enabled only when all text input "Txt_Ip_Data" are filled with values.

 

Please guide.

powerapps.png
Categories:
  • Al_10 Profile Picture
    1,691 Super User 2024 Season 1 on at

    @MAYURIV 

     

    your basic formula will look like:

    If(IsBlank(LookUp(
     ForAll(Gallery_Check_List_Details.AllItems As ThisGalItem,
     {Value: If(!IsBlank(ThisGalItem.Txt_Ip_Data.Text), true, false)}
     ),
     Value = false)),
    
     DisplayMode.Edit,
     DisplayMode.Disabled
    )
    
  • MAYURIV Profile Picture
    71 on at

    I tried your code but Save button is not getting enabled when all text input "Txt_Ip_Data" are filled with values.

    Also some forms where only radio button is there, save button is not getting enabled there also because of this code.

    Please provide some other solution.

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @MAYURIV ,

     

    Please try below code:

    If(
     IsBlank(
     LookUp(
     Gallery_Check_List_Details.AllItems,
     IsBlank(Txt_Ip_Data.Text)
     )
     ),
     DisplayMode.Disabled,
     DisplayMode.Edit
    )

     

    Actually, I am more wondering why you are using a Gallery rather than an Edit Form to accomplish this.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • Verified answer
    MAYURIV Profile Picture
    71 on at

    I have tried the below code and it has worked.

     

    If(
    CountRows(Filter(Gallery_Check_List_Details.AllItems,Check_Type="Input",IsBlank(Txt_Ip_Data.Text)))>0 ,DisplayMode.Disabled,

    DisplayMode.Edit)

     

    Thank you all for the time.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard