field_one is a drop down and field_two is a varchar. I want to be able to pick a value in field_one, have it populate field_two and then clear out field_one. Sounds simple enough.
So I run this code in the on change event:
Apparently Backbone is doing some kind of call back or something because the second line ends up finishing before the first and both fields end up blank. Other than using setTimeout, which is a kludgy work around, I don't see a decent way around this.
If I comment out the second line then field_two gets populated correctly from field_one but field_one remains populated which isn't ideal but isn't exactly a show stopper either.
This is Sugar 184.108.40.206 by the way and the Bugs module.