i need to validate a form but I do not know how. If a certain object is visible that I need textbox x, y and z is required otherwise the textbox a, b and c is required
Thank you Boris. Thank you so much attention
Hello,
Could you please try the sample attached in this post. It is in Visual Basic, so please review it and see if it helps.
Please do not hesitate to contact us if you need any additional assistance.
Your example does not work in VS 2010. My VS only has the vb.net and c # does not have. Is it so?
Hello miguelsneto,
I prepared a sample for your scenario and attached it to this post.
If the button which says "Validate!" on my form is visible, the text boxes in 'groupBox2' are required, if it is hidden then the text boxes in the first group box are required. If a text box which is required is not valid, the form could not be closed.
I am validating only on value changed in the optionSet(which is used to show and hide the button) and on clicking the ultraButton control. So these are the options to validate the form.
Please feel free to let me know if I misunderstood you. I also will be glad to assist you if you have any other questions.
anyone?