Thanks for the link Madhuri,
But it has some limitations. The main problem is that the filters described in this article are not supported in the Browser compatibility mood, so I can't use it as it is a main requirement that the form has to be browser compatible.
The other problem is, I'm using a Repeated Section on the Secondary Data ...