Passing custom filter textbox to dataset

Hi,
In one of the scenario we have to filter data set based on the input provided by the custom text box. Please provide steps related to it.

Custom textboxes will change based on the dropdown selected. in one option we will get one textbox and in another option we will get two textboxes. We have to pass custom textbox values(filter) to dataset based on option selected.

imaget

image