How to disable a control on a button click using Java script Code in office info path 2007 - InfoPath Dev
in

InfoPath Dev

How to disable a control on a button click using Java script Code in office info path 2007

Last post 08-14-2012 04:48 AM by Jimmy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-13-2012 10:18 PM

    How to disable a control on a button click using Java script Code in office info path 2007

    Hi,

    Could any one please tell how to disable a control ( text box, radio button, drop down list box, etc...) on a button click using Java script Code in office info path 2007

    Regards,
    Karthikeyan

     

  • 08-14-2012 04:48 AM In reply to

    Re: How to disable a control on a button click using Java script Code in office info path 2007

    There's no reason to use code for this.  You'll need to create a separate (non-displayed) field to hold the value for whether the control is enabled or not.  You can call it [ControlFieldsName]Enabled.  Add an action rule to the button to set that field to false, and then add conditional formatting to the control to disable it when that field has the value false.
    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.