widget

Hi,
I’m using BOS 6.5.1 **community **
and I’m trying for along to create a widget which depends on another widget in the same Form.
For exemple in the same form, when i choose the option ‘Yes’ of a radio button, another widget will display .
And i tried to create a HTML widget in which i put this code but it didn’t work.

Please does anyone have another simple solution ? (I'm really a newbie so please describe the solution with details, thanks)

Thank you.