Hidden Fields

T

Tom

Is there a way in Jscript to go over all the controls in the form and check
for each one whether he is visible or not (i.e i want to ignore hidden fields)

Thanks,

Tomer
 
F

Franck Dauché

Hi Tom,

Did you look into XDocument.View.GetSelectedNodes() and
XDocument.View.GetContextNodes()?

Regards,

Franck Dauché
 
T

Tom

Hello Franck , and thanks for the reply.

I did look at those functions but there are based on current user selection
or general context. What i'm looking is for a way to go over a form that
might contain more than one view and determine for each view which one of the
nodes is visible.
The reason is that i have a customed button for submit, and i want to prompt
the user only to the errors of the visible controls.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top