Thank you for your reply very much!
The kb requires programming inside a particular form template, which is not desired in my situation.
I want to know how to manipulate over the variables of a form after it renders into html, should have nothing to do with the template itself, using JavaScript.
Thanks anyway,
Sam