save params to form, get values dependent on HTML node type