Skip to main content

Notifications

Power Platform Community / Forums / Building Power Apps / Select a multi-select ...
Building Power Apps
Suggested answer

Select a multi-select checkbox if a text field is not blank

Posted on by 6
Hello, 
 
I am building a PowerApps form and have created a multi-select checkbox using a Gallery based on the instructions in this video.  Create Multi select Checkboxes in Power Apps for SharePoint List Forms | Radio, List Box control (youtube.com) at 9:43. 
 
There is a text field below the checkboxes and if 'Other' is selected, the text field is required.  This works fine. 
 
I would like to do the reverse, if the text field is not blank, then auto-select the 'Other' checkbox but am not finding a solution.  
 
Any help would be appreciated.  Below is a screen shot to help show the setup.  
 
Categories:
  • hassel12 Profile Picture
    hassel12 6 on at
    Select a multi-select checkbox if a text field is not blank
    Thank you for the suggestions.  The problem with the default as suggested for Checkbox8, is the checkbox isn’t only just for the Other option.  The Gallery displays the choices and a variable is used to update the field in the SharePoint list. 

    Below are the property values for the Academic Staff_DataCard1, Gallery8, Checkbox8 and the text field AcadOther_DataCard1. 

    Gallery8 ITEM property pulls the choices from the SharePoint list datasource. 
    Checkbox8 TEXT property = ThisItem.Value
    Checkbox8 DEFAULT property = ThisItem in academicstaffcombobox.SelectedItems
    Academicstaffcombobox VISIBLE property = false
    Academic Staff_DataCard1 UPDATE property = Coalesce(varAcadStaff,ThisItem.'Academic Staff')
    For the text field, AcadOther_DataCard1, the REQUIRED property = If("Other (complete text box below)"in varAcadStaff.Value, true, false)
     
     
    Thank you
  • Suggested answer
    CA1105 Profile Picture
    CA1105 101 on at
    Select a multi-select checkbox if a text field is not blank
    You can try below code on check box default property
     
    If(!IsBlank(TextBox.Text), True, False)
  • Suggested answer
    FLMike Profile Picture
    FLMike 23,258 on at
    Select a multi-select checkbox if a text field is not blank
     
    HI,
     
    in your Other CHeckbox default
     
    If(!IsBlank(MyTextBox.Text), true, false)
     
    So this will check the box the second the textbox has something in it.
     
    please mark as the answer if this helps you.

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Community Update Sept 16…

Power Platform Community Update…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 140,719

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,355

Leaderboard