change button property using code - InfoPath Dev
in

InfoPath Dev

change button property using code

Last post 02-14-2007 12:45 PM by Greg Collins. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-14-2007 10:58 AM

    change button property using code

    Is there a way to change a button's properties using code? Like if I wanted to disable a button based on a users role during OnLoad? Can this be done using the code section of the document OnLoad?
  • 02-14-2007 12:45 PM In reply to

    Re: change button property using code

    You can only do this through conditional formatting. Conditional formatting should allow you to disable based on a user role.

    Having said that, if you create a field, and use conditional formatting based on the value of that field, you can use code to change the value of the field which will then affect your conditional formatting--effectively allowing you to use code to disable the button.
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.