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

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.

Categories:
I have the same question (0)
  • 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
    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

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard