cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
patrickrw99
Frequent Visitor

Conditional Require Fields & Reset Gallery

Hi, I have a Power App that I'm building, which has 2 Inputs put inside a gallery, A Dropdown (Option A, B and C) and Text Input Box. All the data in the gallery will be added to a SharePoint List.

 

I would like to require the user to input the text if the user selects one of the dropdown options (E.g. Opt A). If the user chooses Option A in the Dropdown, but they haven't filled in the text Input, then they will not be able to submit all of the Gallery items. 

 

I've tried looking for the 'Required' Section in the Text Input Box properties but can't seem to find it. 


Any help is appreciated, thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @patrickrw99 ,

 

Textinput has no such property.

You should use If condtion before your patct function.

If(Dropdown1.Selected.Value="A"&&!IsBlank( TextInput1.Text),Patch(...))

 

Best Regards,

Wearsky

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @patrickrw99 ,

 

Textinput has no such property.

You should use If condtion before your patct function.

If(Dropdown1.Selected.Value="A"&&!IsBlank( TextInput1.Text),Patch(...))

 

Best Regards,

Wearsky

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (5,558)