cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Poma1
Helper III
Helper III

Control TextInput behaviour inside of gallery

Hello

 

I have:

1- A gallery with a textinput which is not comming from sharepoint  but its an extra propperty in the Gallery that I patche into Sharepoint seperately.

2- A button to patch the Gallery data into SharePoint list

 

I wish:

The textInput NOT to be empty before patching into SharePoint

 

I have tried to disable the button if the textinput is empty:

in my button OnSelect:      If(IsBlank(TextInputName), DisplayMode.Disabled,DisplayMode.Edit )

 

But its not working 😞

Any help would be very appreciated

 

Regards

Angela

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
NandiniBhagya20
Solution Sage
Solution Sage

Hi @Poma1 ,
Is your button outside of the gallery ?
If yes then you can use the below formula on button's display mode property - 
If(CountRows(Filter(Gallery1.AllItems,IsBlank(TextInputName))) > 0, DisplayMode.Disabled,DisplayMode.Edit )
Assuming Gallery1 is the gallery name


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

View solution in original post

2 REPLIES 2
NandiniBhagya20
Solution Sage
Solution Sage

Hi @Poma1 ,
Is your button outside of the gallery ?
If yes then you can use the below formula on button's display mode property - 
If(CountRows(Filter(Gallery1.AllItems,IsBlank(TextInputName))) > 0, DisplayMode.Disabled,DisplayMode.Edit )
Assuming Gallery1 is the gallery name


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.
Poma1
Helper III
Helper III

Thank you @NandiniBhagya20 

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

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

Users online (1,430)