Link to home
Start Free TrialLog in
Avatar of daniberes
daniberes

asked on

Infopath 2007 Programming code behind, FormEvents_Loading

I am trying to disable a button, if a user opens a form.  The button is an approval button and it can only be enabled if the Manager opens the form. So I have a field that contains Username() to a field with a default value that gets populated when the user click insert on the Manager information.  This fields default is the FirstName.Lastname of manager.  I want to compare the Username() to this and if it matches enable the approve button, and do this on the formload.  I have tried a bunch of different things and cannot get this to work.

 I have not used coding in years and I am very rusty, and the knowledge I have is limited with C#.  So any help would be appreciated.
thanks
Dani
ASKER CERTIFIED SOLUTION
Avatar of daniberes
daniberes

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial