What Patch are you on, as I'm on Patch 5 and setValue() works fine.   That issue PRB712487 is related to not being able to clear the field with an empty string.   That however can be overcome with


g_form.setValue('variable', null);