Disable one or more controls when form is opened - InfoPath Dev
in

InfoPath Dev

Disable one or more controls when form is opened

Last post 04-03-2007 02:06 AM by nukkumatti. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-03-2007 01:55 AM

    Disable one or more controls when form is opened

    Is there a way to disable one or more controls on an InfoPath 2003 form when the form is opened? I've seen the 'Open and Save' option in the Form Options list but there doesn't appear to be a way to disable a button in this list.
  • 04-03-2007 02:05 AM In reply to

    Re: Disable one or more controls when form is opened

    hi markperry,

    yes it is possible, by applying the conditional format on the controls what ever you want to be disable based on some condition of another field.
    B.Shiva Prasad
    InfoPath Dev,
    http://www.ggktech.com
    India
  • 04-03-2007 02:06 AM In reply to

    Re: Disable one or more controls when form is opened

    You have to use conditional formating for each control you want to disable or hide (or set textboxes to read only mode, but this isn't easily changeable afterwards any more.) So I would suggest that you really use conditional formatting for your controls or sections.

    One way you could do this is that in your onload event you set a value to a dummy node (with code, e.g. XDocuemnt.DOM.selectSingleNode(my:myFields/my:dummy).text = 1; ) then set a condition to all of your contorls which hides / disables them when dummy is equal to one.

    Hope this helps.
    Listen to Motörhead cos they play Rock'n Roll :)
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.