troubleshooting Question

Infopath 2007 Programming code behind, FormEvents_Loading

Avatar of daniberes
daniberes asked on
.NET ProgrammingC#InfoPath
1 Comment1 Solution1114 ViewsLast Modified:
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.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros