I have following data extension: "My_DataExtension" "My_DataExtension" DE has following fields:
1. My_Text_field_1 (text 300)
I have a cloudPage named "My_CloudPage".
- This cloudPage has 1 input text element like "
Text_Input_1
" . - Also, this cloudpage has "submit" button.
Now, when a user enters some text value in "Text_Input_1" & clicks "submit" button, I want to search in "My_DataExtension
" for "My_Text_field_1
" for the matching value entered by the user.
I was trying to use the "LookUpRows()" function and this function would take "WHERE" clause. But, user might not enter exact text.
How can I retrieve records from data extension by matching DE field values partially?
E.g. "My_DataExtension" has following 3 records: - My_Text_field_1 ==> "This is my test value 1" - My_Text_field_1 ==> "This is my test value 2" - My_Text_field_1 ==> "This is my test value 3"
And if the user has entered following value on the cloudpage & clicks "submit" button: i.e. Text_Input_1 ==> "This is"
I want to be able to search for the "My_DataExtension" records & it should return me 3 DE rows.
Please let me know which AMPscript function can help me achieve this?