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 / Searching text fields ...
Power Apps
Unanswered

Searching text fields not able to find comment field.

(0) ShareShare
ReportReport
Posted on by 350

 

I can't seem to find the correct syntax to search comment field.   The function cannot find the comment field below. This is a single line text. Any help would be greatly appreciated.   

Here's the code in question.  

 

Filter(OPTrack_FormsInventoryEnhancedTables, txtSearch.Text in FORM_NO || Text(dteReqDate.SelectedDate) in REQ_DATE
|| Text(dteReqDate.SelectedDate) in LAST_INVEN || txtComment.Text in COMMENT);

 

Categories:
I have the same question (0)
  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    hi @rroque ,

    there might be potential issues like case sensitivity or exact match requirements. Some systems might require an exact match, meaning that if txtComment.Text contains "hello", it will only match a COMMENT field that contains "hello" exactly and not "Hello" or "hello there".

    Here's how you might adjust the syntax:

     

    Lower(txtComment.Text) in Lower(COMMENT)

     

  • rroque Profile Picture
    350 on at

    Here are the advanced properties.

    rroque_0-1718279336480.png

     

  • rroque Profile Picture
    350 on at

    Also the lower example isn't delegable. 

  • rroque Profile Picture
    350 on at

    @anandm08 Thank you for the lower code. I tried the lower code and it is not finding my comment field.  

  • rroque Profile Picture
    350 on at

    Here's the revised code.  I included you lower instruction code.  

    Filter(OPTrack_FormsInventoryEnhancedTables, txtSearch.Text in FORM_NO || Text(dteReqDate.SelectedDate) in REQ_DATE
    || Text(dteReqDate.SelectedDate) in LAST_INVEN || Lower(txtComment.Text) in Lower(COMMENT));

  • rroque Profile Picture
    350 on at

    hi @anandm08 

     

    Here's the revised code. 

     

    Filter(OPTrack_FormsInventoryEnhancedTables, txtSearch.Text in FORM_NO || Text(txtSearch.Text) in REQ_DATE
    || Text(txtSearch.Text) in LAST_INVEN || Lower(txtSearch.Text) in Lower(COMMENT));

  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at
    Filter(
     OPTrack_FormsInventoryEnhancedTables,
     txtSearch.Text in Text(FORM_NO) ||
     txtSearch.Text in Text(REQ_DATE) ||
     txtSearch.Text in Text(LAST_INVEN) ||
     Lower(txtSearch.Text) in Lower(COMMENT)
    )

    try this

  • rroque Profile Picture
    350 on at

    Hi @anandm08 thx again.  I tried your code but no difference. I don't know what else I can check.

    Revised code.

    Filter(
    OPTrack_FormsInventoryEnhancedTables,
    txtSearch.Text in Text(FORM_NO) ||
    txtSearch.Text in Text(REQ_DATE) ||
    txtSearch.Text in Text(LAST_INVEN) ||
    Lower(txtSearch.Text) in Lower(COMMENT)
    )

     

  • rroque Profile Picture
    350 on at

    Yes I did found the problem and fixed it.

    The fix was to add the comment field to the items property of the list. Thank you.  

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