nicklockwood / FXForms

[DEPRECATED]
Other
2.93k stars 339 forks source link

Deselect cell in FXFormsOptions #412

Closed tony98789 closed 9 years ago

tony98789 commented 9 years ago

I have been trying to implement this myself but i have had no luck so far. What i want to do is when a row is already selected in the fxformfieldoptions i want to deselect it and clear its value out but im not sure how to do this, any help or suggestions would be much appreciated. Thank you.

tony98789 commented 9 years ago

Figured it out, in fxforms the function setOptionSelected you can change the return value to nil which deselects if the option is already selected. Line 1329 as shown below.

screen shot 2015-09-24 at 13 35 15