Integrated icon indicating copy to clipboard operation
Integrated copied to clipboard

Selecting options based on their labels

Open marklj opened this issue 9 years ago • 2 comments

Right now the functionality is:

select($selectName, $optionValue)

A lot of the forms I deal with have database uuids as the value of the <option>. Since I have no idea what those uuid values are after seeding, I need to be able select based on the text inside of the <option> tags. Is there any way to do this currently?

marklj avatar Mar 25 '15 07:03 marklj

No, but we can add that.

JeffreyWay avatar Mar 25 '15 14:03 JeffreyWay

I'm pretty new to contributing, so let me know if I'm doing this wrong. I have a working solution to this issue here:

https://github.com/marklj/Integrated/commit/c7c6528082f102aff9d380bc49bf0efba63ff941

If there is a better/cleaner way to achieve this, I'm totally open to any input.

marklj avatar Mar 25 '15 20:03 marklj