How can I pass Option Set values in the URL as text and select the right option set on the new page?

Now you send option set as a text value via URL parameters and you want in new page you want to initialize multiline input …
Steps for it :
1 . Pass the option set’s display attribute as a parameter.
2. Get an option to compare between values and parameter .data
3. use filter approach to compare .

As an example, I have an option set called Gender.