Hi all,
Now before anyone says this, I know that buttons can be dissabled by InfoPath GUI, but the problem is:
I have 15 buttons (menus actually) which opens views when clicked on them (15 menu buttons for 15 views). Now I need to dissable certain buttons depending on a value in the form, so if value = 1 buttons 2, 5, 7 and 11 are dissabled (for example). Now I can do this, but when you look at how much time/effort is required to do every button for every view (15x15) FORGET IT! Why work harder when you can work smarter and script this task. So, my question is, how in VBSCRIPT can one disable a button? For example:
If value.text = 1 Then
Button1 is disabled and Button2 is disabled and Button5 is .... etc etc
Any help here on the code would be gratefully received ;)